-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
45 lines (45 loc) · 1.29 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
repos:
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
hooks:
- id: autopep8-wrapper
args:
- --in-place
- --max-line-length=99
- id: flake8
args:
- --max-line-length=99
- id: check-ast
- id: check-case-conflict
- id: debug-statements
- id: double-quote-string-fixer
- id: end-of-file-fixer
# We run pylint from local env, to ensure modules can be found
- repo: local
hooks:
- id: pylint
name: pylint
entry: env PYTHONPATH=app python3 -m pylint.__main__
language: system
types: [python]
args:
- --disable=broad-except
- --disable=duplicate-code
- --disable=invalid-name
- --disable=missing-docstring
- --disable=no-self-use
- --disable=possibly-unused-variable
- --disable=protected-access
- --disable=too-few-public-methods
- --disable=too-many-arguments
- --disable=too-many-branches
- --disable=too-many-lines
- --disable=too-many-locals
- --disable=too-many-public-methods
- --disable=too-many-statements
- --disable=try-except-raise
- --include-naming-hint=yes
- --max-args=10
- --max-line-length=99
- --max-locals=25
- --max-returns=10