Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
160 lines (150 loc) · 4.97 KB
/
Copy pathpyproject.toml
File metadata and controls
160 lines (150 loc) · 4.97 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[tool.pyright]
include = [
"callback_plugins",
"roles/importer/files/importer",
"scripts"
]
extraPaths = ["roles/importer/files/importer"]
venvPath = "."
venv = ".venv"
pythonPlatform = "Linux"
exclude = [
"**/.*",
"**/node_modules",
"**/__pycache__",
".git",
".venv",
"venv",
"roles/api/files/scripts",
"scripts/acquire_lock.py",
"scripts/gh-search.py",
"scripts/json_pretty_print.py",
"scripts/release_lock.py"
]
typeCheckingMode = "strict"
reportMissingImports = false
reportMissingTypeStubs = true
[tool.ruff]
required-version = "0.16.7"
line-length = 120
indent-width = 4
target-version = "py310"
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
"__init__.py",
"roles/tests-integration",
"roles/api/files/scripts",
"scripts/acquire_lock.py",
"scripts/gh-search.py",
"scripts/json_pretty_print.py",
"scripts/release_lock.py",
"AGENTS.md",
"CLAUDE.md",
]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN", # flake8-annotations: Type annotation checks
"COM", # flake8-commas: Trailing comma checks
"C90", # mccabe: Complexity checks
"DJ", # flake8-django: Django-specific checks
"EXE", # flake8-executable: Executable file checks
"T10", # flake8-debugger: Debugger import checks
"TID", # flake8-tidy-imports: Import organization checks
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D106", # Missing docstring in public nested class
"D107", # Missing docstring in __init__
"D200", # One-line docstring should fit on one line
"D203", # 1 blank line required before class docstring
"D205", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the first line
"D400", # First line should end with a period
"D401", # First line should be in imperative mood
"D415", # First line should end with a period, question mark, or exclamation point
"D417", # Missing argument descriptions in the docstring
"E402", # Module level import not at top of file
"E501", # Line too long
"TRY003", # Avoid specifying long messages outside the exception class
"TD002", # Missing author in TODO
"TD003", # Missing issue link on the line following a TODO
"FIX002", # Line contains TODO, consider resolving the issue
"EM101", # Exception must not use a string literal, assign to variable first
"EM102", # Exception must not use an f-string literal, assign to variable first
"PTH100", # os.path.abspath() should be replaced by Path.resolve()
"PTH123", # open() should be replaced by Path.open()
"PLR0913", # Too many arguments in function definition
"PT009", # Use a regular assert instead of unittest-style assertEqual
"PLR0915", # Too many statements
"PLR0912", # Too many branches
"PLR0911", # Too many return statements
"FBT001", # Boolean-typed positional argument in function definition
"FBT002", # Boolean default positional argument in function definition
"BLE001", # Do not catch blind exception: Exception
"DTZ005", # datetime.datetime.now() called without a tz argument
"TRY301", # Abstract raise to an inner function
"TRY300", # Consider moving this statement to an else block
"B904", # Within an except clause, raise exceptions with raise ... from err
"S113", # Probable use of requests call without timeout
"S104", # Possible binding to all interfaces
"S101", # Usage of assert
"CPY001", # Missing copyright notice at top of file
"PLR0917", # Too many positional arguments
]
fixable = ["ALL"]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
"roles/importer/files/importer/test/**.py" = ["SLF001", "PLR2004", "FBT003"]
"scripts/customizing/**/test_*.py" = ["FBT003", "PLR2004", "PT017", "S105"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
pythonpath = [
".",
"roles/importer/files/importer",
"roles/importer/files/importer/test",
]
[tool.coverage.run]
branch = true
relative_files = true
source = [
"callback_plugins",
"roles/importer/files/importer",
"scripts",
]
omit = [
"roles/importer/files/importer/test/*",
"scripts/**/test_*.py",
]