-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
48 lines (44 loc) · 1.32 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
files: ^(privacy_api/|tests/|setup.py)
repos:
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
language_version: python3.6
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
args: [--atomic, --recursive]
- repo: https://github.com/PyCQA/pylint
rev: pylint-2.4.4
hooks:
- id: pylint
name: pylint-src
additional_dependencies: [requests, attrs, marshmallow]
files: ^privacy_api/
args:
- --disable=bad-continuation
- --disable=invalid-name
- --disable=line-too-long
- --disable=too-many-arguments
- --disable=too-many-instance-attributes
- repo: https://github.com/PyCQA/pylint
rev: pylint-2.4.4
hooks:
- id: pylint
name: pylint-tests
additional_dependencies: [requests, attrs, marshmallow, pytest]
files: ^tests/
args:
- --disable=invalid-name
- --disable=missing-function-docstring
- --disable=missing-module-docstring
- --disable=redefined-outer-name
- --disable=unused-argument
- --disable=wrong-import-order
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.761
hooks:
- id: mypy
files: ^privacy_api/.*$