-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
91 lines (77 loc) · 1.86 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "rs2simlib"
dynamic = ["version"]
authors = [
{ name = "tuokri", email = "[email protected]" },
]
description = "Projectile and weapon physics simulation library for Rising Storm 2: Vietnam."
readme = "README.md"
license = "AGPL-3.0-or-later"
license-files = { paths = ["LICENSE"] }
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Operating System :: OS Independent",
]
dependencies = [
"numba==0.60.0",
"numpy==2.0.0",
"scipy==1.14.1",
"Flake8-pyproject==1.2.3",
"matplotlib==3.9.2",
]
[project.urls]
"Homepage" = "https://github.com/tuokri/rs2simlib"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "rs2simlib/_version.py"
[tool.hatch.envs.test]
dependencies = [
"pytest",
"mypy",
"flake8",
]
[tool.hatch.envs.test.scripts]
test = "pytest"
types = "mypy rs2simlib --show-error-codes"
lint = "scripts/lint.sh"
[tool.hatch.envs.test.overrides]
platform.windows.scripts = [
'lint=.\scripts\lint.bat"',
]
[tool.hatch.envs.plots]
dependencies = [
"matplotlib",
]
[tool.hatch.envs.plots.scripts]
draw = "python scripts/draw_plots.py"
[tool.mypy]
plugins = [
"numpy.typing.mypy_plugin"
]
# TODO: fix models typing.
exclude = [
"scripts/",
"rs2simlib/models/",
]
[[tool.mypy.overrides]]
module = "numba"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "numba.core.types"
ignore_missing_imports = true
[tool.pytest.ini_options]
filterwarnings = [
"ignore::numba.NumbaExperimentalFeatureWarning",
]
[tool.flake8]
per-file-ignores = [
"rs2simlib/fast/drag/fastdrag.py:C901",
"rs2simlib/drag/drag.py:C901",
"rs2simlib/dataio/dataio.py:C901",
]