30 lines
848 B
YAML
30 lines
848 B
YAML
# 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.0.1
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-added-large-files
|
|
- repo: https://github.com/psf/black
|
|
rev: 21.11b1
|
|
hooks:
|
|
- id: black
|
|
- repo: https://github.com/timothycrosley/isort
|
|
rev: 5.10.1
|
|
hooks:
|
|
- id: isort
|
|
args: ["--profile", "black", "--filter-files", "-l", "79"]
|
|
- repo: https://github.com/myint/autoflake
|
|
rev: v1.4
|
|
hooks:
|
|
- id: autoflake
|
|
args:
|
|
[
|
|
"--in-place",
|
|
"--remove-all-unused-imports",
|
|
"--ignore-init-module-imports",
|
|
"--remove-unused-variables",
|
|
]
|