-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
52 lines (48 loc) · 1.13 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
40
41
42
43
44
45
46
47
48
49
50
51
52
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
name: Add an empty line to EoF
- id: trailing-whitespace
name: Remove trailing whitespaces
- id: check-executables-have-shebangs
name: Check executables have shebangs
- id: check-shebang-scripts-are-executable
name: Check shebangs scripts are executable
- id: check-yaml
name: Check YAML files
args:
- "--unsafe"
- id: requirements-txt-fixer
name: Sort requirements.txt lines
files: ^requirements/.*$
- repo: local
hooks:
- id: black
name: Black
entry: black
args:
- '-S'
language: python
types:
- python
- id: pylint
name: PyLint
entry: pylint
language: python
exclude: ".*/alembic/versions/.*"
args:
- '--disable'
- 'R0903' # too-few-public-methods
types:
- python
- id: autoflake
name: Remove unused imports
entry: autoflake
language: python
args:
- '--in-place'
- '--remove-all-unused-imports'
types:
- python