-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
99 lines (85 loc) · 1.96 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
[project]
name = "AMN"
version = "0.6.1"
description = "Virtual machines for the AMN instructions sets"
requires-python = ">=3.10"
keywords = [
"AM0",
"AM1",
"AMN"
]
classifiers = [
"Environment :: Console",
"Intended Audience :: Education",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Education",
"Topic :: Utilities",
"Typing :: Typed"
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[[project.authors]]
name = "Eric Niklas Wolf"
email = "[email protected]"
[project.urls]
Repository = "https://github.com/Deric-W/AMN"
Bugtracker = "https://github.com/Deric-W/AMN/issues"
[project.scripts]
amn = "AMN.main:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.envs.test]
dependencies = [
"coverage[toml] == 7.*"
]
[tool.hatch.envs.test.scripts]
test = "python -m unittest discover {args}"
cov-run = "coverage run -m unittest discover {args}"
cov-report = [
"- coverage combine",
"coverage report"
]
cov = [
"cov-run",
"cov-report"
]
[[tool.hatch.envs.test.matrix]]
python = ["3.10", "3.11", "3.12"]
[tool.hatch.envs.lint]
dependencies = [
"mypy >= 1.0.0",
"pylint >= 2.12.2",
"flake8 >= 5.0.0",
"isort >= 5.10.1"
]
[tool.hatch.envs.lint.scripts]
lint = [
"- flake8 src/AMN",
"- pylint src/AMN"
]
typecheck = "mypy -p AMN"
release = [
"typecheck"
]
[tool.hatch.build.targets.sdist]
exclude = ["/.github"]
[tool.mypy]
disallow_any_unimported = true
disallow_any_generics = true
disallow_untyped_defs = true
no_implicit_optional = true
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = false # problems with match statement
[tool.pylint]
max-line-length = 100
[tool.coverage.run]
source_pkgs = ["AMN"]
branch = true
parallel = true