38 lines
1 KiB
YAML
38 lines
1 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.1.0
|
|
hooks:
|
|
- id: check-toml
|
|
- id: check-yaml
|
|
- id: check-merge-conflict
|
|
- id: requirements-txt-fixer
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
args: [--markdown-linebreak-ext=md]
|
|
|
|
- repo: https://github.com/pre-commit/pygrep-hooks
|
|
rev: v1.9.0
|
|
hooks:
|
|
- id: python-check-blanket-noqa
|
|
|
|
- repo: https://github.com/psf/black
|
|
rev: 22.1.0
|
|
hooks:
|
|
- id: black
|
|
args: [--line-length=100, --fast, --target-version=py310]
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-isort
|
|
rev: V5.10.1
|
|
hooks:
|
|
- id: isort
|
|
args: ["--profile", "black"]
|
|
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: 4.0.1
|
|
hooks:
|
|
- id: flake8
|
|
additional_dependencies:
|
|
- flake8-annotations~=2.7
|
|
- flake8-bandit~=2.1
|
|
- flake8-docstrings~=1.6
|
|
args: [--max-line-length=100, --ignore=ANN101 D107 ANN102 ANN206 D105 ANN204 E203]
|