-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
39 lines (37 loc) · 1.12 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
repos:
- repo: https://github.com/ambv/black
rev: 22.1.0
hooks:
- id: black
additional_dependencies: ['click==8.0.4']
args: # arguments to configure black
- --line-length=88
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
name: Format docstrings with `docformatter`
language: system
types: [python]
require_serial: true
args: [--in-place,--wrap-summaries=88, --wrap-descriptions=87, --recursive]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
args : ["--profile", "black", "--filter-files"]
- repo: local
hooks:
- id: flake8
name: "Run linter flake8"
language: system
types: [python]
require_serial: true
entry: flake8
args :
# match perfectly .flake8 file
- "--max-line-length=88"
- "--per-file-ignores=*/__init__.py:F401"
- "--ignore=D105, E731, W503, F821, E203"
- "--docstring-convention=numpy"
- "--exclude=.git, .github, .dvc, __pycache__, .venv, .mypy_cache, .pytest_cache, conf.py"