-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
232 lines (196 loc) · 5.17 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
[build-system]
requires = [
"setuptools>=62.0",
"wheel",
# this will validate our project classifiers
"trove-classifiers",
# for wrangling version number
"setuptools_scm[toml]>=6.4.0",
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "wowdump/_version.py"
[project]
name = "wowdump"
dynamic = [ "version" ]
authors = [ { name = "TDV Alinsa", email = "[email protected]" } ]
description = "Read World of Warcraft data formats"
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Games/Entertainment",
"Topic :: Software Development :: Code Generators",
]
requires-python = ">=3.9"
dependencies = [
"kaitaistruct==0.9",
"ppretty>=1.3",
"requests>=2.25.0",
"PyYAML>=5.3",
]
[project.optional-dependencies]
tests = [
'pytest>=7.0',
'pytest-cov',
'pytest-html',
'pytest-order',
'pytest-benchmark[histogram]>=3.2.1',
'responses',
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://github.com/alinsavix/kaitai-wow"
"Bug Tracker" = "https://github.com/alinsavix/kaitai-wow/issues"
[project.scripts]
wowdump = "wowdump:main"
[tool.setuptools]
package-dir = { "" = "." }
# packages = wowdump
include-package-data = false
[tool.setuptools.packages.find]
# I don't really want to put my one package in another subdir so that
# I can use anything other than the top level as package_dir, so I guess
# we're stuck with this ugliness
where = [ "." ]
include = [
"wowdump",
"wowdump.commands",
"wowdump.filetypes",
"wowdump.simplifiers",
]
exclude = []
namespaces = true
[tool.setuptools.package-data]
"wowdump.filetypes" = [ "*.yaml" ]
[tool.mypy]
python_version = 3.9
mypy_path = "typings"
exclude = "^(wowdump/filetypes/|tests/|conftest\\.py|outputs/|typings/|out/|wowdump-script\\.py)"
# follow_imports = "silent"
# ignore_missing_imports = true
namespace_packages = true
warn_unused_configs = true
strict_optional = true
disallow_subclassing_any = false
disallow_any_generics = true
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
warn_no_return = true
[[tool.mypy.overrides]]
module = [ "kaitaistruct.*" ]
ignore_missing_imports = true
[tool.isort]
# Blender primary before stdlib bits because that seems to be the order
# used in most of the blender built-in addons and such. There's probably
# no reason things *need* to be that way, but a consistently followed
# mediocre standard is better than a poorly followed one.
sections = [
"FUTURE",
"BLENDER_PRIMARY",
"STDLIB",
"BLENDER_SECONDARY",
"BLENDER_OTHER",
"FIRSTPARTY",
"THIRDPARTY",
"LOCALFOLDER",
]
known_blender_primary = [ "bpy", "bmesh", "mathutils" ]
known_blender_secondary = [
"addon_utils",
"aud",
"bgl",
"bl_operators",
"bl_ui",
"bl_ui_utils",
"blend_render_info",
"blf",
"bpy_extras",
"freestyle",
"gpu",
"gpu_extras",
"nodeitems_builtins",
"nodeitems_utils",
"rna_keymap_ui",
"rna_prop_ui",
]
known_blender_other = [
"animsys_refactor",
"bl_app_override",
"bl_app_template_utils",
"bl_i18n_utils",
"bl_keymap_utils",
"bl_previews_utils",
"bl_rna_utils",
"bpy_restrict_state",
"bpy_types",
"console",
"console_python",
"console_shell",
"graphviz_export",
"keyingsets_builtins",
"keyingsets_utils",
"rna_info",
"rna_xml",
"sys_info",
]
[tool.pytest.ini_options]
required_plugins = [
"pytest-html >=3.1",
"pytest-cov >=2.12",
"pytest-order >=1.0",
]
log_cli = false
addopts = [
"--tb=short",
"--strict-markers",
"--html=@rootdir@/tests/report.html",
"--css=@rootdir@/tests/report.css",
"--self-contained-html",
"--cov=wowdump",
"--cov-report=html:@rootdir@/tests/htmlcov",
]
console_output_style = "count"
log_auto_indent = true
norecursedirs = [ "*" ]
python_files = [ "test_*.py", "check_*.py", "example_*.py" ]
testpaths = [ "tests" ]
filterwarnings = [
# hopefully the pytest folks will give us a better way to do this at
# some point so we don't have to use `pytest_cmdline_preparse` at all
'ignore:The pytest_cmdline_preparse hook is deprecated:DeprecationWarning',
]
# tox doesn't quite support native pyproject.toml, but at least lets us
# store the ini-type config here. This config probably doesn't work right
# now, though -- tox hasn't been a high priority for us, but keeping the
# config here as a starting point.
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py37,py38,py39,py310
[testenv]
deps =
pytest >=6.2
pytest-html >=3.1
pytest-cov >=2.12
pytest-order >=1.0
requests >=2.25.0
kaitaistruct==0.9
ppretty>=1.3
responses>=0.16.0
commands = {posargs:pytest}
"""