diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 71d0380..ff4a505 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,20 +1,12 @@ repos: - - repo: https://github.com/charliermarsh/ruff-pre-commit - # Ruff version. - rev: "v0.0.249" - hooks: - - id: ruff - args: [--fix, --exit-non-zero-on-fix] - types: [python] - repo: local hooks: - - id: bandit - name: bandit - entry: bandit + - id: black + name: black + entry: black language: system types: [python] require_serial: true - args: ["-c", "bandit.yml"] - id: check-added-large-files name: Check for added large files entry: check-added-large-files @@ -35,6 +27,14 @@ repos: language: system types: [text] stages: [commit, push, manual] + - id: flake8 + name: flake8 + entry: flake8 + language: system + types: [python] + exclude: "^(test/*|examples/*|noxfile.py)" + require_serial: true + args: ["--config=.flake8"] - id: pyupgrade name: pyupgrade description: Automatically upgrade syntax for newer versions.