-
Notifications
You must be signed in to change notification settings - Fork 20
/
pyproject.toml
95 lines (86 loc) · 2.14 KB
/
pyproject.toml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[tool.black]
line-length = 125
[tool.isort]
no_sections = true
force_alphabetical_sort = true
combine_as_imports = true
profile = "black"
skip_gitignore = true
line_length = 125
[tool.pytest.ini_options]
python_classes = "!TestPG" # Ignore class named `TestPG`.
testpaths = 'test/'
addopts = '-vv'
[tool.flake8]
ignore = [
'E722', # https://www.flake8rules.com/rules/E722.html Do not use bare except, specify exception instead
'E203', # https://www.flake8rules.com/rules/E203.html Whitespace before ':'
'W503', # https://www.flake8rules.com/rules/W503.html Line break occurred before a binary operator
]
max-line-length = 125
[tool.mypy]
strict = true
files = [
'pglookout/',
'test/',
]
exclude = [
# Implementation.
'pglookout/__main__.py',
'pglookout/cluster_monitor.py',
'pglookout/common.py',
'pglookout/current_master.py',
'pglookout/logutil.py',
'pglookout/pglookout.py',
'pglookout/pgutil.py',
'pglookout/statsd.py',
'pglookout/version.py',
'pglookout/webserver.py',
# Tests.
'test/conftest.py',
'test/test_cluster_monitor.py',
'test/test_common.py',
'test/test_lookout.py',
'test/test_pgutil.py',
'test/test_webserver.py',
# Other.
'setup.py',
'version.py',
]
[tool.pylint.'MESSAGES CONTROL']
disable = [
'bad-option-value',
'duplicate-code',
'fixme',
'import-outside-toplevel',
'invalid-name',
'len-as-condition',
'locally-disabled',
'missing-docstring',
'no-else-raise',
'no-else-return',
'no-self-use',
'raise-missing-from',
'too-few-public-methods',
'too-many-ancestors',
'too-many-arguments',
'too-many-boolean-expressions',
'too-many-branches',
'too-many-function-args',
'too-many-instance-attributes',
'too-many-locals',
'too-many-public-methods',
'too-many-statements',
'ungrouped-imports',
'unspecified-encoding',
'wrong-import-order',
'wrong-import-position',
]
[tool.pylint.'FORMAT']
max-line-length = 125
max-module-lines = 1300
[tool.pylint.'REPORTS']
output-format = 'text'
reports = 'no'
[tool.pylint.'TYPECHECK']
extension-pkg-whitelist = 'pydantic'