# # Keep these versions requirements.txt versions aligned. # repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: - id: trailing-whitespace exclude: '\.md$' - id: end-of-file-fixer - id: detect-private-key - id: check-merge-conflict # Using this mirror lets us use mypyc-compiled black, which is about 2x faster - repo: https://github.com/pycqa/isort rev: 6.0.1 hooks: - id: isort name: isort - repo: https://github.com/psf/black-pre-commit-mirror rev: 25.1.0 hooks: - id: black # It is recommended to specify the latest version of Python # supported by your project here, or alternatively use # pre-commit's default_language_version, see # https://pre-commit.com/#top_level-default_language_version language_version: python3.9 - repo: https://github.com/PyCQA/autoflake rev: v2.3.1 hooks: - id: autoflake name: autoflake args: - "--in-place" - "--expand-star-imports" - "--remove-duplicate-keys" - "--remove-unused-variables" - "--remove-all-unused-imports" - repo: https://github.com/pycqa/flake8 rev: 7.2.0 hooks: - id: flake8 name: flake8 - repo: https://github.com/PyCQA/bandit rev: 1.7.1 hooks: - id: bandit name: bandit entry: bandit args: - "-b" - "bandit-baseline.json" - "--configfile" - "bandit.yaml" - "-r" - "src"