-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
87 lines (75 loc) · 2.29 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "clargs"
dynamic = ["version"]
description = "Easily generate commandline apps from your functions, based on type hints"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
keywords = []
authors = [
{ name = "Claude", email = "[email protected]" },
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = []
[project.urls]
Documentation = "https://github.com/reinhrst/clargs#readme"
Issues = "https://github.com/reinhrst/clargs/issues"
Source = "https://github.com/reinhrst/clargs"
[tool.hatch.version]
path = "src/clargs/__about__.py"
[tool.hatch.envs.get-python-versions]
python = "3.12"
scripts.get-python-versions = """
python -c 'import tomllib;import json;import pathlib;print(json.dumps(tomllib.loads(pathlib.Path("pyproject.toml").read_text())["tool"]["hatch"]["envs"]["hatch-test"]["matrix"][0]["python"]), end="")'
"""
[tool.hatch.envs.types]
extra-dependencies = [
"mypy>=1.0.0",
]
scripts.check = "mypy --install-types --non-interactive {args:src/clargs tests}"
[tool.hatch.envs.lint]
extra-dependencies = [
"ruff>=0.4.5",
]
scripts.lint-check = "ruff check --diff"
scripts.format-check = "ruff format --diff"
scripts.lint-fix = "ruff check --fix"
scripts.format-fix = "ruff format"
[tool.hatch.envs.examples]
scripts.check = "./examples/__generate_example_output__.sh examples/ --check"
scripts.generate = "./examples/__generate_example_output__.sh examples/ --overwrite"
[tool.coverage.run]
source_pkgs = ["clargs", "tests"]
branch = true
parallel = true
omit = [
"src/clargs/__about__.py",
]
[tool.coverage.paths]
clargs = ["src/clargs", "*/clargs/src/clargs"]
tests = ["tests", "*/clargs/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.hatch.envs.hatch-test]
dependencies = [
"pytest",
"pytest-cov"
]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.12", "3.11", "3.10"]