Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
63 lines (57 loc) · 1.55 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
63 lines (57 loc) · 1.55 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
# - repo: https://github.com/asottile/seed-isort-config
# rev: 'v2.2.0'
# hooks:
# - id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: 'v5.10.1'
hooks:
- id: isort
exclude: ^(migrations/|Project/tests)
- repo: https://github.com/psf/black
rev: '22.3.0'
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.2.0'
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: mixed-line-ending
- id: check-added-large-files
# - id: detect-aws-credentials
- id: check-ast
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: debug-statements
- id: detect-private-key
- repo: https://github.com/pycqa/flake8 # code
rev: '4.0.1'
hooks:
- id: flake8
args:
- --max-line-length=88
# D106 Missing docstring in public nested class
# D401 First line should be in imperative mood
- --extend-ignore=D106,D401
additional_dependencies:
- flake8-docstrings
exclude: ^(migrations/|Project/tests/)
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.942'
hooks:
- id: mypy
# additional_dependencies:
# - fastapi==0.65.3
# - fastapi-sqlalchemy==0.2.1
# - pandas==1.3.0
# - psycopg2==2.9.1
# - sqlalchemy2-stubs==0.0.2a4
# - types-requests==2.25.0
exclude: ^migrations/