github balena-io/open-balena v4.1.291

latest releases: v4.1.305, v4.1.304, v4.1.303...
6 days ago

Update pre-commit hook pre-commit/pre-commit-hooks to v4

Notable changes

  • requirements-txt-fixer: remove duplicate packages.
  • fix-encoding-pragma: deprecated -- will be removed in 5.0.0. use
  • requirements-txt-fixer: also sort constraints.txt by default.
  • debug-statements: add bpdb debugger.
  • file-contents-sorter: fix sorting an empty file.
  • double-quote-string-fixer: don't rewrite inside f-strings in 3.12+.
  • now requires python >= 3.8.
  • forbid-submodules: new hook which outright bans submodules.
  • check-executables-have-shebangs: use git config core.fileMode to determine if it should query git.
  • name-tests-test: add --pytest-test-first test convention.
  • check-shebang-scripts-are-executable: update windows instructions.
  • check-toml: use stdlib tomllib when available.
  • check-added-large-files: don't run on non-file stages.
  • name-tests-test: updated display text.
  • check-docstring-first: make output more parsable.
  • check-merge-conflict: make output more parsable.
  • debug-statements: make output more parsable.
  • check-merge-conflict: fix detection of ====== conflict marker on windows.
  • Drop python<3.7.
  • Changed default branch from master to main.
  • debug-statements: add pdbr debugger.
  • detect-private-key: add detection for additional key types.
  • check-executables-have-shebangs: improve messaging on windows.
  • check-added-large-files: support --enforce-all with git-lfs.
  • check-case-conflict: improve performance.
  • forbid-new-submodules: fix false-negatives for pre-push.
  • check-merge-conflict: fix execution in git worktrees.
  • Normalize case of hook names and descriptions.
  • check-shebang-scripts-are-executable fix entry point.
  • check-json: report duplicate keys.
  • no-commit-to-branch: add main to default blocked branches.
  • check-case-conflict: check conflicts in directory names as well.
  • check-vcs-permalinks: forbid other branch names.
  • check-shebang-scripts-are-executable: new hook which ensures shebang'd scripts are executable.
  • check-executables-have-shebangs: Short circuit shebang lookup on windows.
  • requirements-txt-fixer: Fix comments which have indentation
  • pretty-format-json: write to stdout using UTF-8 encoding.
  • Use more inclusive language.
  • Remove deprecated hooks: flake8, pyflakes, autopep8-wrapper.
  • file-contents-sorter: Add --unique argument
  • check-vcs-permalinks: Add --additional-github-domain option
  • New hook: destroyed-symlinks to detect unintentional symlink-breakages on windows.
  • file-contents-sorter: add --ignore-case option for case-insensitive sorting
  • check-added-large-files: add --enforce-all option to check non-added files as well
  • fix-byte-order-marker: new hook which fixes UTF-8 byte-order marker.
  • check-byte-order-marker is now deprecated for fix-byte-order-marker
pre-commit/pre-commit-hooks (pre-commit/pre-commit-hooks)

v4.6.0: pre-commit-hooks v4.6.0

Compare Source

Features
Migrating

v4.5.0: pre-commit-hooks v4.5.0

Compare Source

Features
Fixes

Migrating

v4.4.0: pre-commit-hooks v4.4.0

Compare Source

Features

v4.3.0: pre-commit-hooks v4.3.0

Compare Source

Features
  • check-executables-have-shebangs: use git config core.fileMode to determine if it should query git.
  • name-tests-test: add --pytest-test-first test convention.
Fixes

v4.2.0: pre-commit-hooks v4.2.0

Compare Source

Features
Fixes
  • check-merge-conflict: fix detection of ====== conflict marker on windows.
Updating

v4.1.0: pre-commit-hooks v4.1.0

Compare Source

Features
Fixes
Misc.

v4.0.1: pre-commit-hooks v4.0.1

Compare Source

Fixes

v4.0.0: pre-commit-hooks v4.0.0

Compare Source

Features
Fixes
Breaking changes

v3.4.0: pre-commit-hooks v3.4.0

Compare Source

Features

v3.3.0: pre-commit-hooks v3.3.0

Compare Source

Features
Deprecations
  • check-byte-order-marker is now deprecated for fix-byte-order-marker

List of commits

4ce6f76 (Update pre-commit hook pre-commit/pre-commit-hooks to v4, 2024-12-30)

Don't miss a new open-balena release

NewReleases is sending notifications on new releases.