pre-commit

A framework for managing and maintaining multi-language pre-commit hooks.

MIT License

Downloads
32.8M
Stars
12.2K
Committers
152

Bot releases are hidden (Show)

pre-commit - pre-commit v3.7.1 Latest Release

Published by asottile 5 months ago

Fixes

  • Fix language: rust default language version check when rust-toolchain.toml
    is present.
    • issue by @gaborbernat.
    • #3201 PR by @asottile.
pre-commit - pre-commit v3.7.0

Published by asottile 7 months ago

Features

  • Use a tty for docker and docker_image hooks when --color is specified.
    • #3122 PR by @glehmann.

Fixes

  • Fix fail_fast for individual hooks stopping when previous hooks had failed.
    • #3167 issue by @tp832944.
    • #3168 PR by @asottile.

Updating

  • The per-hook behaviour of fail_fast was fixed. If you want the pre-3.7.0
    behaviour, add fail_fast: true to all hooks before the last fail_fast
    hook.
pre-commit - pre-commit v3.6.2

Published by asottile 8 months ago

Fixes

  • Fix building golang hooks during git commit --all.
    • #3130 PR by @asottile.
    • #2722 issue by @pestanko and @matthewhughes934.
pre-commit - pre-commit v3.6.1

Published by asottile 8 months ago

Fixes

  • Remove PYTHONEXECUTABLE from environment when running.
    • #3110 PR by @untitaker.
  • Handle staged-files-only with only a crlf diff.
    • #3126 PR by @asottile.
    • issue by @tyyrok.
pre-commit - pre-commit v3.6.0

Published by asottile 10 months ago

Features

  • Check minimum_pre_commit_version first when parsing configs.
    • #3092 PR by @asottile.

Fixes

  • Fix deprecation warnings for importlib.resources.
    • #3043 PR by @asottile.
  • Fix deprecation warnings for rmtree.
    • #3079 PR by @edgarrmondragon.

Updating

  • Drop support for python<3.9.
    • #3042 PR by @asottile.
    • #3093 PR by @asottile.
pre-commit - pre-commit v3.5.0

Published by asottile about 1 year ago

Features

  • Improve performance of check-hooks-apply and check-useless-excludes.
    • #2998 PR by @mxr.
    • #2935 issue by @mxr.

Fixes

  • Use time.monotonic() for more accurate hook timing.
    • #3024 PR by @adamchainz.

Migrating

  • Require npm 6.x+ for language: node hooks.
    • #2996 PR by @RoelAdriaans.
    • #1983 issue by @henryiii.
pre-commit - pre-commit v3.4.0

Published by asottile about 1 year ago

Features

  • Add language: haskell.
    • #2932 by @alunduil.
  • Improve cpu count detection when run under cgroups.
    • #2979 PR by @jdb8.
    • #2978 issue by @jdb8.

Fixes

  • Handle negative exit codes from hooks receiving posix signals.
    • #2971 PR by @chriskuehl.
    • #2970 issue by @chriskuehl.
pre-commit - pre-commit v3.3.3

Published by asottile over 1 year ago

Fixes

  • Work around OS packagers setting --install-dir / --bin-dir in gem settings.
    • #2905 PR by @jaysoffian.
    • #2799 issue by @lmilbaum.
pre-commit - pre-commit v3.3.2

Published by asottile over 1 year ago

Fixes

  • Work around r on windows sometimes double-un-quoting arguments.
    • #2885 PR by @lorenzwalthert.
    • #2870 issue by @lorenzwalthert.
pre-commit - pre-commit v3.3.1

Published by asottile over 1 year ago

Fixes

  • Work around git partial clone bug for autoupdate on windows.
    • #2866 PR by @asottile.
    • #2865 issue by @adehad.
pre-commit - pre-commit v3.3.0

Published by asottile over 1 year ago

Features

  • Upgrade ruby-build.
    • #2846 PR by @jalessio.
  • Use blobless clone for faster autoupdate.
    • #2859 PR by @asottile.
  • Add -j / --jobs argument to autoupdate for parallel execution.
    • #2863 PR by @asottile.
    • issue by @gaborbernat.
pre-commit - pre-commit v3.2.2

Published by asottile over 1 year ago

Fixes

  • Fix support for swift >= 5.8.
    • #2836 PR by @edelabar.
    • #2835 issue by @kgrobelny-intive.
pre-commit - pre-commit v3.2.1

Published by asottile over 1 year ago

Fixes

  • Fix language_version for language: rust without global rustup.
    • #2823 issue by @daschuer.
    • #2827 PR by @asottile.
pre-commit - pre-commit v3.2.0

Published by asottile over 1 year ago

Features

  • Allow pre-commit, pre-push, and pre-merge-commit as stages.
    • #2732 issue by @asottile.
    • #2808 PR by @asottile.
  • Add pre-rebase hook support.
    • #2582 issue by @BrutalSimplicity.
    • #2725 PR by @mgaligniana.

Fixes

  • Remove bulky cargo cache from language: rust installs.
    • #2820 PR by @asottile.
pre-commit - pre-commit v3.1.1

Published by asottile over 1 year ago

Fixes

  • Fix rust with language_version and a non-writable host RUSTUP_HOME.
    • pre-commit-ci/issues#173 by @Swiftb0y.
    • #2788 by @asottile.
pre-commit - pre-commit v3.1.0

Published by asottile over 1 year ago

Fixes

  • Fix dotnet for .sln-based hooks for dotnet>=7.0.200.
    • #2763 PR by @m-rsha.
  • Prevent stashing when diff fails to execute.
    • #2774 PR by @asottile.
    • #2773 issue by @strubbly.
  • Dependencies are no longer sorted in repository key.
    • #2776 PR by @asottile.

Updating

  • Deprecate language: python_venv. Use language: python instead.
    • #2746 PR by @asottile.
    • #2734 issue by @asottile.
pre-commit - pre-commit v3.0.4

Published by asottile over 1 year ago

Fixes

  • Fix hook diff detection for files affected by --textconv.
    • #2743 PR by @adamchainz.
    • #2743 issue by @adamchainz.
pre-commit - pre-commit v3.0.3

Published by asottile over 1 year ago

Fixes

  • Revert "Prevent local Gemfile from interfering with hook execution.".
    • #2739 issue by @Roguelazer.
    • #2740 PR by @asottile.
pre-commit - pre-commit v3.0.2

Published by asottile over 1 year ago

Fixes

  • Prevent local Gemfile from interfering with hook execution.
    • #2727 PR by @asottile.
  • Fix language: r, repo: local hooks
    • pre-commit-ci/issues#107 by @lorenzwalthert.
    • #2728 PR by @asottile.
pre-commit - pre-commit v3.0.1

Published by asottile over 1 year ago

Fixes

  • Ensure coursier hooks are available offline after install.
    • #2723 PR by @asottile.