-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
99 lines (84 loc) · 2.43 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "pydantic-typer"
dynamic = ["version"]
description = 'Typer extension to enable pydantic support'
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = []
authors = [
{ name = "Patrick Düggelin", email = "patrick.dueggelin@live.de" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"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",
]
dependencies = [
"pydantic",
"typer",
]
[project.urls]
Documentation = "https://github.com/pypae/pydantic-typer#readme"
Issues = "https://github.com/pypae/pydantic-typer/issues"
Source = "https://github.com/pypae/pydantic-typer"
[tool.hatch.version]
path = "src/pydantic_typer/__about__.py"
[tool.hatch.envs.dev]
extra-dependencies = [
"mypy>=1.0.0",
"pytest",
"coverage",
"smokeshow",
]
[tool.hatch.envs.dev.scripts]
check = "mypy --install-types --non-interactive {args:src/pydantic_typer unit_tests}"
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.12", "3.11", "3.10", "3.9", "3.8"]
[tool.hatch.envs.hatch-test]
default-args = [""]
parallel = true
[tool.hatch.envs.hatch-test.env-vars]
TERMINAL_WIDTH = "3000"
_TYPER_FORCE_DISABLE_TERMINAL = "1"
[tool.hatch.envs.hatch-static-analysis]
config-path = "ruff_defaults.toml"
[tool.ruff]
extend = "ruff_defaults.toml"
[tool.ruff.per-file-ignores]
# Allow assert in tests
"unit_tests/*.py" = ["S101"]
[tool.coverage.run]
source_pkgs = ["pydantic_typer", "unit_tests"]
branch = true
parallel = true
omit = [
"src/pydantic_typer/__about__.py",
]
[tool.coverage.paths]
pydantic_typer = ["src/pydantic_typer", "*/pydantic-typer/src/pydantic_typer"]
unit_tests = ["unit_tests", "*/pydantic-typer/unit_tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
show_missing = "true"
[tool.pytest.ini_options]
# Some cli and completion tests don't work as expected (Because we run coverage on a different module?)
addopts = "-k 'not test_cli and not test_completion'"
testpaths = [
"unit_tests",
"regression_tests/conftest.py",
"regression_tests/typer/tests",
]