This repository has been archived by the owner on Dec 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
65 lines (63 loc) · 1.73 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
53
54
55
56
57
58
59
60
61
62
63
64
65
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
additional_dependencies: [toml]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.960
hooks:
- id: mypy
additional_dependencies: ["sqlalchemy-stubs"]
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args: [
"fideslib",
"tests",
"--disable=invalid-name",
"--disable=line-too-long",
"--disable=missing-class-docstring",
"--disable=missing-module-docstring",
"--disable=too-few-public-methods",
"--disable=too-many-arguments",
"--disable=too-many-instance-attributes",
"--disable=unsubscriptable-object",
"--disable=duplicate-code",
"--ignore=fideslib.egg-info",
"--extension-pkg-whitelist=pydantic",
# "--rcfile=pyproject.toml",
"-rn", # Only display messages
"-sn", # Don't display score
]
# disable=[
# "invalid-name",
# "line-too-long",
# "missing-class-docstring",
# "missing-module-docstring",
# "too-few-public-methods",
# "too-many-arguments",
# "too-many-instance-attributes",
# "unsubscriptable-object",
# ]
# ignore=[
# "fideslib.egg-info",
# ]
# extension-pkg-whitelist = "pydantic"