diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 756743b..4610646 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: # Other file formatting, plus common Git mistakes & text file standardization: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: check-added-large-files # Don't accidentally commit giant files. - id: check-merge-conflict # Watch for lingering merge markers. @@ -37,7 +37,7 @@ repos: # Make sure import statements are sorted uniformly. - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort @@ -58,20 +58,20 @@ repos: # Update a bunch of Python syntax, using __futures__ for Python 3.8/3.9 # Note that this sometimes conflicts with Pydantic on Python 3.8/3.9 - repo: https://github.com/asottile/pyupgrade - rev: v3.7.0 + rev: v3.18.0 hooks: - id: pyupgrade args: ["--py311-plus"] # Deterministic python formatting: - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 24.10.0 hooks: - id: black language_version: python3.11 - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.9-for-vscode + rev: v4.0.0-alpha.8 hooks: - id: prettier types_or: [yaml] @@ -82,7 +82,7 @@ repos: # Check for PEP8 non-compliance, code complexity, style, errors, etc: - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 7.1.1 hooks: - id: flake8 args: ["--config", "tox.ini"] @@ -100,7 +100,7 @@ repos: # Check for known security vulnerabilities: - repo: https://github.com/PyCQA/bandit - rev: 1.7.5 + rev: 1.7.10 hooks: - id: bandit # Currently no configuration... @@ -108,7 +108,7 @@ repos: # Use type annotations to check types - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.3.0 + rev: v1.12.1 hooks: - id: mypy additional_dependencies: @@ -119,14 +119,14 @@ repos: # Check for errors in restructuredtext (.rst) files under the doc hierarchy - repo: https://github.com/PyCQA/doc8 - rev: v1.1.1 + rev: v1.1.2 hooks: - id: doc8 args: ["--config", "tox.ini"] # Lint any RST files and embedded code blocks for syntax / formatting errors - repo: https://github.com/rstcheck/rstcheck - rev: v6.1.2 + rev: v6.2.4 hooks: - id: rstcheck additional_dependencies: [sphinx] @@ -134,7 +134,7 @@ repos: # Lint Dockerfiles for errors and to ensure best practices - repo: https://github.com/AleksaC/hadolint-py - rev: v2.12.0.2 + rev: v2.12.1b3 hooks: - id: hadolint @@ -146,7 +146,7 @@ repos: # clear outputs from Jupyter notebooks - id: nb-output-clear name: nb-output-clear - stages: [commit] + stages: [pre-commit] language: system verbose: false pass_filenames: false @@ -155,7 +155,7 @@ repos: # Run the unit tests - id: unit-tests name: unit-tests - stages: [commit] + stages: [pre-commit] language: system verbose: false pass_filenames: false