-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
108 lines (98 loc) · 2.39 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
96
97
98
99
100
101
102
103
104
105
106
107
108
[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 = "py312"
line-length = 120
unsafe-fixes = true
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 120
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"A001",
"A002",
"A005",
"ANN001", # Type annotation
"ANN002",
"ANN003",
"ANN201", # Partially autofixable None return useful for mypy
"ANN202", # Partially autofixable, useful for mypy
"ANN204", # Partially autofixable, useful for mypy
"ANN205",
"ANN206",
"ANN401",
"ARG002",
"ARG004",
"COM", # Done via formatter
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D203", # Incompatible with D211
"D213", # Incompatible with D212
"D401",
"D417", # We don't want every argument to be documented
"DTZ001", # TODO: Enable
"E501", # Done via formatter
"FBT001",
"FBT002",
"FBT003",
"FIX002",
"INP001",
"ISC001", # Done via formatter
"PERF203",
"PT", # We don't use pytest here
"S",
"T", # Keep print statements
"TD"
]