diff --git a/.flake8 b/.flake8 index 67087e873..a2162126a 100644 --- a/.flake8 +++ b/.flake8 @@ -5,4 +5,4 @@ exclude = .git, scratch_*.py, Bonsai, - venv* \ No newline at end of file + venv* diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 19778b0e7..d7cb1012e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,15 +1,29 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v4.4.0 hooks: - id: end-of-file-fixer types_or: [python, yaml, json, toml] - id: trailing-whitespace types_or: [python, yaml, json, toml] + - id: check-case-conflict + - id: check-docstring-first + - id: check-ast - id: check-yaml - id: check-json - id: check-toml + - id: check-xml + - id: check-vcs-permalinks + - id: detect-private-key + +- repo: https://github.com/pre-commit/pygrep-hooks + rev: v1.10.0 + hooks: + - id: python-check-blanket-type-ignore + - id: python-use-type-annotations + - id: python-no-log-warn + - id: text-unicode-replacement-char - repo: https://github.com/pycqa/flake8 rev: 6.1.0