-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
294 lines (273 loc) · 6.12 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
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
[tool.poetry]
name = "minchoc"
version = "0.0.11"
authors = ["Andrew Udvare <[email protected]>"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 5.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Software Distribution",
"Typing :: Typed",
]
description = "Minimal Chocolatey-compatible NuGet server in a Django app."
documentation = "https://minchoc.readthedocs.io/"
keywords = ["chocolatey", "django", "windows"]
license = "MIT"
packages = [{ include = "minchoc" }]
readme = "README.md"
repository = "https://github.com/Tatsh/minchoc"
[tool.poetry.dependencies]
python = ">=3.11,<4"
defusedxml = "^0.7.1"
django = "^5.0"
django-stubs-ext = "^5.0"
ply = "^3.11"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
commitizen = ">=3.9.1,<5.0.0"
cruft = "^2.15.0"
django-stubs = "^5.0"
mypy = "^1.5.1"
pre-commit = ">=3.6,<5.0"
rope = "^1.9.0"
ruff = ">=0.5.0,<0.9.0"
toml = "^0.10.2"
types-toml = "^0.10.8.7"
yapf = ">=0.40.1,<0.44.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
doc8 = "^1.1.1"
docutils = ">=0.20.1,<0.22.0"
esbonio = "^0.16.3"
restructuredtext-lint = "^1.4.0"
sphinx = ">=7.2.6,<9.0.0"
tomlkit = ">=0.12.3,<0.14.0"
[tool.poetry.group.tests]
optional = true
[tool.poetry.group.tests.dependencies]
coveralls = "^3.3.1"
mock = "^5.1.0"
pytest = ">=7.4.3,<9.0.0"
pytest-cov = ">=4.1,<6.0"
pytest-django = "^4.5.2"
pytest-mock = "^3.12.0"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
[tool.commitizen]
tag_format = "v$version"
version_files = ["README.md", "minchoc/__init__.py", "package.json"]
version_provider = "poetry"
[tool.coverage.run]
omit = ["minchoc/wsgi.py"]
[tool.cruft]
skip = [
"./*.lock",
"./.*_cache",
"./.git/hooks/*.sample",
"./docs/*.rst",
"./tests/*/test_*.py",
"./tests/test_*.py",
".git/COMMIT_EDITMSG",
".git/HEAD",
".git/config",
".git/index",
".git/logs/",
".git/refs/",
".vscode/dictionary.txt",
"CHANGELOG.md",
"LICENSE.txt",
"dist/",
"htmlcov/",
"man/",
"minchoc/",
"node_modules/",
]
[tool.django-stubs]
django_settings_module = "minchoc"
ignore_missing_settings = true
[tool.doc8]
max-line-length = 100
[tool.mypy]
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_untyped_decorators = true
disallow_subclassing_any = true
exclude = ['^minchoc/parsetab.py$']
mypy_path = "./.stubs"
plugins = ["mypy_django_plugin.main"]
show_column_numbers = true
show_error_codes = true
strict_equality = true
strict_optional = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_ignores = true
[tool.pytest.ini_options]
django_find_project = false
mock_use_standalone_module = true
[tool.ruff]
cache-dir = "~/.cache/ruff"
exclude = ["parsetab.py"]
extend-ignore = ["C408", "PTH123", "Q000", "Q001", "Q003", "T201", "TD002", "TD003", "TD004"]
namespace-packages = ["docs"]
extend-select = [
"A",
"ASYNC",
"B",
"C4",
"DTZ",
"ERA",
"EXE",
"G",
"I",
"INP",
"INT",
"ISC003",
"NPY",
"PD",
"PERF",
"PGH",
"PIE",
"PLC0105",
"PLC0131",
"PLC0132",
"PLC0205",
"PLC0208",
"PLC0414",
"PLC3002",
"PLE0100",
"PLE0101",
"PLE0116",
"PLE0117",
"PLE0118",
"PLE0241",
"PLE0302",
"PLE0307",
"PLE0604",
"PLE0605",
"PLE1142",
"PLE1205",
"PLE1206",
"PLE1300",
"PLE1307",
"PLE1310",
"PLE1507",
"PLE1700",
"PLE2502",
"PLE2510",
"PLE2512",
"PLE2513",
"PLE2514",
"PLE2515",
"PLR0124",
"PLR0133",
"PLR0206",
"PLR0402",
"PLR1701",
"PLR1711",
"PLR1714",
"PLR1722",
"PLR2004",
"PLR5501",
"PLW0120",
"PLW0127",
"PLW0129",
"PLW0131",
"PLW0406",
"PLW0602",
"PLW0603",
"PLW0711",
"PLW1508",
"PLW1509",
"PLW1510",
"PLW2901",
"PLW3301",
"PT",
"PTH",
"PYI",
"Q",
"RET",
"RSE",
"RUF200",
"S506",
"S602",
"SIM",
"SLF",
"SLOT",
"T20",
"TCH",
"TD",
"TRY",
"UP",
"YTT",
]
line-length = 100
target-version = "py311"
unsafe-fixes = true
[tool.ruff.flake8-quotes]
inline-quotes = "single"
multiline-quotes = "single"
[tool.ruff.lint.flake8-self]
extend-ignore-names = ["_base_manager", "_default_manager", "_meta"]
[tool.ruff.lint.isort]
from-first = true
case-sensitive = true
combine-as-imports = true
[tool.yapf]
align_closing_bracket_with_visual_indent = true
allow_multiline_dictionary_keys = false
allow_multiline_lambdas = false
allow_split_before_dict_value = true
blank_line_before_class_docstring = false
blank_line_before_module_docstring = false
blank_line_before_nested_class_or_def = false
blank_lines_around_top_level_definition = 2
coalesce_brackets = true
column_limit = 100
continuation_align_style = "SPACE"
continuation_indent_width = 4
dedent_closing_brackets = false
disable_ending_comma_heuristic = false
each_dict_entry_on_separate_line = true
indent_dictionary_value = true
indent_width = 4
join_multiple_lines = true
no_spaces_around_selected_binary_operators = false
space_between_ending_comma_and_closing_bracket = false
spaces_around_default_or_named_assign = false
spaces_around_power_operator = true
spaces_before_comment = 2
split_all_comma_separated_values = false
split_arguments_when_comma_terminated = false
split_before_bitwise_operator = true
split_before_closing_bracket = true
split_before_dict_set_generator = true
split_before_dot = false
split_before_expression_after_opening_paren = false
split_before_first_argument = false
split_before_logical_operator = true
split_before_named_assigns = true
split_complex_comprehension = false
split_penalty_after_opening_bracket = 30
split_penalty_after_unary_operator = 10000
split_penalty_before_if_expr = 0
split_penalty_bitwise_operator = 300
split_penalty_comprehension = 80
split_penalty_excess_character = 7000
split_penalty_for_added_line_split = 30
split_penalty_import_names = 0
split_penalty_logical_operator = 300
use_tabs = false
[tool.yapfignore]
ignore_patterns = ["node_modules/**"]