-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (101 loc) · 2.59 KB
/
Copy pathpyproject.toml
File metadata and controls
112 lines (101 loc) · 2.59 KB
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
[build-system]
requires = ["hatchling>=1.27", "hatch-vcs>=0.3"]
build-backend = "hatchling.build"
[project]
name = "modelmachine"
dynamic = ["version"]
description = "Model machine emulator"
readme = "README.md"
license = { file = "LICENSE.txt" }
maintainers = [
{ name = "Vladimir Liutov", email = "vs@lutov.net" },
{ name = "Fr. Br. George", email = "georgle@altlinux.org" },
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Environment :: Console",
"Intended Audience :: Education",
"Natural Language :: English",
"Natural Language :: Russian",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Education",
"Topic :: Scientific/Engineering",
"Topic :: Utilities",
]
requires-python = ">=3.7"
dependencies = [
"pyparsing==3.1.4", # Python 3.7
'tomli~=2.0; python_version<"3.11"',
]
[project.scripts]
modelmachine = "modelmachine.__main__:main"
[project.urls]
Homepage = "https://github.com/cmc-python/modelmachine"
Repository = "https://github.com/cmc-python/modelmachine.git"
Documentation = "https://github.com/cmc-python/modelmachine#readme"
Issues = "https://github.com/cmc-python/modelmachine/issues"
Changelog = "https://github.com/cmc-python/modelmachine/releases"
[tool.hatch.version]
source="vcs"
[tool.hatch.build.hooks.vcs]
version-file = "modelmachine/__about__.py"
[tool.hatch.build.targets.sdist]
include = [
"/modelmachine",
]
[tool.hatch.envs.dev]
python = "3.13"
dependencies = [
"mypy==1.15.0",
"tomli~=2.0", # For mypy
"ipython~=9.0", # For mypy
"pytest==7.4.4", # Python 3.7
"ruff==0.9.9",
]
[tool.hatch.envs.hatch-test]
dependencies = [
"pytest==7.4.4", # Python 3.7
]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.13", "3.8", "3.7"]
[tool.coverage.run]
source_pkgs = ["modelmachine", "tests"]
branch = true
parallel = true
omit = [
"modelmachine/__about__.py",
]
[tool.coverage.paths]
model = ["modelmachine"]
tests = ["tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.hatch.envs.hatch-static-analysis]
config-path = "ruff_defaults.toml"
dependencies = ["ruff==0.9.9"]
[tool.ruff]
extend = "ruff_defaults.toml"
line-length = 79
indent-width = 4
target-version = "py37"
[tool.ruff.lint]
preview = true
ignore = [
"S101",
]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "parents"
[tool.ruff.lint.per-file-ignores]
"**/tests/**/*" = [
"PLR2004",
"SLF001",
"S101",
]
[tool.mypy]
plugins = "modelmachine.shared.enum_mixin"