42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
# See https://pre-commit.com for more information
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
exclude: ^(docs/|notebooks/|data/|src/secrets/|src/static/|src/templates/|tests)
|
|
default_language_version:
|
|
python: python3.8
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.3.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
|
|
- repo: https://gitlab.com/pycqa/flake8
|
|
rev: 3.9.2
|
|
hooks:
|
|
- id: flake8
|
|
args:
|
|
- "--max-line-length=120"
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-isort
|
|
rev: v5.10.1
|
|
hooks:
|
|
- id: isort
|
|
args: ["--profile", "black"]
|
|
|
|
- repo: https://github.com/psf/black
|
|
rev: 22.8.0
|
|
hooks:
|
|
- id: black
|
|
# exclude: ^(docs/|notebooks/|data/|src/secrets/)
|
|
args:
|
|
- --line-length=120
|
|
|
|
- repo: https://github.com/python-poetry/poetry
|
|
rev: '1.2.0rc1' # add version here
|
|
hooks:
|
|
- id: poetry-check
|
|
- id: poetry-lock
|
|
# - id: poetry-export
|
|
# args: ["-f", "requirements.txt", "-o", "requirements.txt"]
|