.pre-commit-config.yaml
exclude: |
(?x)^(
docs/source/conf.py|
docs/example.ipynb|
tests/[\w]*.py|
tools/[\w]*.py|
reports/[\w]*|
examples/[\w]*.py|
tasks.py|
post_installation.py
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-ast
- id: check-added-large-files
args: [--maxkb=500]
- id: fix-byte-order-marker
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: pretty-format-json
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.14.1
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--filter-files"]
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies:
# - flake8-bugbear
# - flake8-comprehensions
# - flake8-eradicate
- flake8-simplify
args: ["--ignore=E800,F842,F841,W503"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py39]
- repo: https://github.com/PyCQA/bandit
rev: 1.7.7
hooks:
- id: bandit
args:
- -s
- B101,B404,B603,B605,B607
- repo: meta
hooks:
- id: check-useless-excludes