-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
79 lines (70 loc) · 1.75 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
[tool.docformatter]
in-place = true
recursive = true
wrap-summaries = 88
wrap-descriptions = 81
[tool.flake8]
max-line-length = 120
[tool.flake8.known-modules]
"" = ["sel_tools", "tests", "gitlab_projects", "create_gitlab_projects", "export_files"]
[tool.mypy]
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
ignore_missing_imports = true
no_implicit_optional = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
strict_equality = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.pylint.BASIC]
# Stick to snake case, but accept setUp and tearDown from unittest
method-rgx = "(([a-z_][a-z0-9_]*)|(setUp)|(tearDown))$"
[tool.pylint.FORMAT]
max-line-length = 120
[tool.pylint.MASTER]
# Add files or directories to the blacklist. They should be base names, not paths.
ignore = ["venv", ".venv"]
[tool.pylint."MESSAGES CONTROL"]
# Only show warnings with the listed confidence levels. Leave empty to show
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
confidence = ""
disable = [
"missing-function-docstring",
"import-error", # disabled since pre-commit runs pylint in a separate venv
"unspecified-encoding",
"fixme",
"too-few-public-methods"
]
[tool.ruff]
fix = true
target-version = "py310"
line-length = 120
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"A",
"ANN",
"ARG",
"COM", # Done via formatter
"D",
"DTZ001", # TODO: Enable
"E501", # Done via formatter
"FBT",
"FIX",
"INP",
"ISC001", # Done via formatter
"PERF203",
"PT", # We don't use pytest here
"S",
"T",
"TD"
]