diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7477655b..56ba7946 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks default_install_hook_types: [pre-commit, commit-msg, pre-push] default_stages: [commit] -minimum_pre_commit_version: 2.18.0 +minimum_pre_commit_version: 3.0.0 exclude: ^.vscode/ repos: @@ -15,7 +15,7 @@ repos: # Commitizen enforces semantic and conventional commit messages. - repo: https://github.com/commitizen-tools/commitizen - rev: v3.5.3 + rev: 3.5.3 hooks: - id: commitizen name: Check conventional commit message @@ -37,7 +37,7 @@ repos: name: Format code args: [--config, pyproject.toml] - repo: https://github.com/asottile/blacken-docs - rev: 1.13.0 + rev: 1.15.0 hooks: - id: blacken-docs name: Format code in docstrings @@ -46,7 +46,7 @@ repos: # Upgrade and rewrite Python idioms. - repo: https://github.com/asottile/pyupgrade - rev: v3.3.1 + rev: v3.9.0 hooks: - id: pyupgrade name: Upgrade code idioms @@ -62,7 +62,7 @@ repos: name: Check flake8 issues files: ^src/package/|^tests/ types: [text, python] - additional_dependencies: [flake8-bugbear==23.1.20, flake8-builtins==2.1.0, flake8-comprehensions==3.10.1, flake8-docstrings==1.7.0, flake8-mutable==1.2.0, flake8-noqa==1.3.0, flake8-print==5.0.0, flake8-pyi==23.3.1, flake8-pytest-style==1.6.0, flake8-rst-docstrings==0.3.0, pep8-naming==0.13.3] + additional_dependencies: [flake8-bugbear==23.7.10, flake8-builtins==2.1.0, flake8-comprehensions==3.14.0, flake8-docstrings==1.7.0, flake8-mutable==1.2.0, flake8-noqa==1.3.2, flake8-print==5.0.0, flake8-pyi==23.6.0, flake8-pytest-style==1.7.2, flake8-rst-docstrings==0.3.0, pep8-naming==0.13.3] args: [--config, .flake8] # Run Pylint from the local repo to make sure venv packages @@ -90,7 +90,7 @@ repos: # Check for potential security issues. - repo: https://github.com/PyCQA/bandit - rev: 1.7.4 + rev: 1.7.5 hooks: - id: bandit name: Check for security issues @@ -107,6 +107,7 @@ repos: - id: check-ast - id: check-case-conflict - id: check-merge-conflict + - id: check-added-large-files - id: debug-statements - id: end-of-file-fixer stages: [commit] @@ -140,7 +141,7 @@ repos: # Check and prettify the configuration files. - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks - rev: v2.6.0 + rev: v2.10.0 hooks: - id: pretty-format-ini args: [--autofix] @@ -152,7 +153,7 @@ repos: # Check GitHub Actions workflow files. - repo: https://github.com/Mateusz-Grzelinski/actionlint-py - rev: v1.6.24 + rev: v1.6.25 hooks: - id: actionlint diff --git a/pyproject.toml b/pyproject.toml index e701ef71..0eb50fd0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,7 +57,7 @@ docs = [ "typing-extensions !=4.6.0", ] hooks = [ - "pre-commit >=2.18.0,<3.4.0", + "pre-commit >=3.0.0,<3.4.0", ] # Note that the `custom_exit_code` and `env` plugins may currently be unmaintained. test = [