-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
94 lines (83 loc) · 2.07 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
[build-system]
requires = [
"setuptools>=61.2",
"setuptools_scm[toml]>=3.4.3",
"construct>=2.10.0",
"inflection>=0.5.1",
]
build-backend = "setuptools.build_meta"
[project]
name = "retro-data-structures"
description = "Construct file definitions for the Retro Studios game engine files"
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
requires-python = ">=3.10"
dependencies = [
"construct>=2.10.0",
"lzokay",
"pycryptodome",
"typing-extensions>=4.0.0"
]
dynamic = ["version"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://github.com/randovania/retro-data-structures"
[project.optional-dependencies]
test = [
"nod",
"pytest",
"pytest-cov",
# "pytest-asyncio",
# "pytest-mock",
]
[tool.setuptools_scm]
local_scheme = "no-local-version"
write_to = "src/retro_data_structures/version.py"
git_describe_command = "git describe --dirty --tags --long --match v[0-9]*"
[tool.pytest.ini_options]
minversion = "6.0"
# asyncio_mode = "auto"
xfail_strict = true
filterwarnings = [
"error",
"ignore::DeprecationWarning",
]
markers = [
"skip_dependency_tests: Skips tests that involves calculating dependencies"
]
[tool.ruff]
line-length = 120
target-version = "py310"
src = ["src"]
[tool.ruff.lint]
select = [
"E", "F", "W", "C90", "I", "UP", "C4",
"RSE",
"TCH",
"PTH",
"COM818", "COM819",
"ISC",
"PIE",
"PLC",
"PLE",
"PLR",
"PLW",
]
extend-ignore = [
"ISC001", # may cause conflicts with formatter
"PLR0913", # Too many arguments to function call
"PLR2004", # Magic values show up everywhere in construct defs
]
[tool.ruff.lint.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds 25.
# Defaults to 10, but we're being very flexible right now
max-complexity = 25
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]