File tree 3 files changed +52
-0
lines changed
3 files changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ exclude : ^(docs)/
2
+ repos :
3
+ - repo : https://github.com/pre-commit/pre-commit-hooks
4
+ rev : v4.0.1
5
+ hooks :
6
+ - id : check-merge-conflict
7
+ - id : check-toml
8
+ - id : check-yaml
9
+ - id : trailing-whitespace
10
+ - id : end-of-file-fixer
11
+ # - id: requirements-txt-fixer
12
+ - repo : https://github.com/PyCQA/isort
13
+ rev : 5.10.1
14
+ hooks :
15
+ - id : isort
16
+ name : isort
17
+ args : ["--profile", "black"]
18
+ - repo : https://github.com/asottile/pyupgrade
19
+ rev : v2.29.1
20
+ hooks :
21
+ - id : pyupgrade
22
+ args : [--py37-plus]
23
+ - repo : https://github.com/psf/black
24
+ rev : 21.11b1
25
+ hooks :
26
+ - id : black
27
+ name : black
28
+ description : " Black: The uncompromising Python code formatter"
29
+ entry : black
30
+ language : python
31
+ minimum_pre_commit_version : 2.9.2
32
+ require_serial : true
33
+ types_or : [python, pyi]
34
+ - repo : https://github.com/PyCQA/pylint
35
+ rev : v2.12.2
36
+ hooks :
37
+ - id : pylint
38
+ args : [--rcfile=.pylintrc]
39
+ files : ^.*\.py
Original file line number Diff line number Diff line change
1
+ [MESSAGES CONTROL]
2
+ disable =
3
+ E0401, # unable to import becaue pylint runs in a minimal env
4
+ C0301, # line too long is managed by black
5
+ C0103, # variable, method and class naming style enforcement
6
+ C0116, # some methods are just too simple to deserve a docstring
7
+ R0902, # too many instance attributes
8
+ R0903, # too few public methods
9
+ R0913, # too many arguments
10
+ R0914, # too many local variables
11
+ R1711, # useless return is okay
12
+ W0632, # problems when unpacking numpy arrays
Original file line number Diff line number Diff line change @@ -10,3 +10,4 @@ twine==1.14.0
10
10
11
11
12
12
black==21.7b0
13
+ precommit
You can’t perform that action at this time.
0 commit comments