lightning-hydra-template/.pre-commit-config.yaml

41 строка
1018 B
YAML
Исходник Обычный вид История

2021-03-06 16:08:16 +03:00
default_language_version:
python: python3.8
repos:
# Pre-commit hooks
2021-03-06 16:08:16 +03:00
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
# list of supported hooks: https://pre-commit.com/hooks.html
2021-03-06 16:08:16 +03:00
- id: trailing-whitespace
- id: debug-statements
- id: detect-private-key
- id: check-yaml
- id: check-added-large-files
# Black (code formatting)
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
args: [
--line-length, "99",
# --exclude, src/train.py,
]
2021-03-06 16:08:16 +03:00
# Isort (import sorting)
- repo: https://github.com/PyCQA/isort
rev: 5.7.0
hooks:
- id: isort
# profiles: https://pycqa.github.io/isort/docs/configuration/profiles/
# other flags: https://pycqa.github.io/isort/docs/configuration/options/
args: [
--profile, black,
--skip, src/train.py,
--skip, run.py,
--filter-files,
]
# files: "src/.*"