.pre-commit-config.yaml•1.12 kB
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
- id: check-json
- id: pretty-format-json
args: ['--autofix', '--indent=2']
exclude: 'package-lock.json'
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files", "--line-length", "120"]
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
args: ["--line-length=120"]
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies: ['flake8-bugbear', 'flake8-print']
args: ['--max-line-length=120', '--extend-ignore=E203,W503,B008']
- repo: https://github.com/PyCQA/bandit
rev: 1.7.7
hooks:
- id: bandit
args: ["-c", "bandit.yaml"]