diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c46f659..5e15bce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: # Standard and general-purpose hooks - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -20,7 +20,7 @@ repos: - id: mixed-line-ending - repo: https://github.com/codespell-project/codespell - rev: v2.2.5 + rev: v2.3.0 hooks: - id: codespell @@ -35,7 +35,7 @@ repos: # Python files - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.281 + rev: v0.4.9 hooks: - id: ruff files: "^(src/pybamm_cookiecutter|tests$)" @@ -44,7 +44,7 @@ repos: # Documentation files - repo: https://github.com/asottile/blacken-docs - rev: "1.15.0" + rev: "1.16.0" hooks: - id: blacken-docs additional_dependencies: [black==23.7.0] @@ -59,7 +59,7 @@ repos: # Jupyter notebooks - repo: https://github.com/nbQA-dev/nbQA - rev: "1.7.0" + rev: "1.8.5" hooks: - id: nbqa-ruff additional_dependencies: [ruff==0.0.281] @@ -67,7 +67,10 @@ repos: # mypy - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.4.1 + rev: v1.10.0 hooks: - id: mypy files: "^(src/pybamm_cookiecutter|tests$)" + +exclude: + CODE-OF-CONDUCT.md