-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
93 lines (84 loc) · 2.23 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
[project]
name = "pydantic-sweep"
description = "Programmatic parameter sweeps for pydantic."
readme = "README.md"
license = "MPL-2.0"
dynamic = ["version"]
authors = [
{ name = "Felix Berkenkamp" }
]
requires-python = ">=3.10"
classifiers = [
"Operating System :: OS Independent",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries",
"Typing :: Typed",
]
dependencies = [
"more-itertools~=10.1",
"pydantic~=2.5",
]
[project.urls]
Repository = "https://github.com/befelix/pydantic_sweep"
Releases = "https://github.com/befelix/pydantic_sweep/releases"
Documentation = "https://pydantic-sweep.readthedocs.io"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "src/pydantic_sweep/_version.py"
[dependency-groups]
dev = [
"pytest-sugar>=1.0.0",
"pytest>=8.3.4",
"ruff>=0.8.3",
"mypy[mypyc]>=1.13.0",
"ipython>=8.30.0",
]
doc = [
"myst-parser>=4.0.0",
"sphinx-autobuild>=2024.10.3",
"sphinx>=8.1.3",
"sphinx-rtd-theme>=3.0.2",
"sphinx-autoapi>=3.4.0",
"jupytext>=1.16.6",
"myst-nb>=1.1.2",
"sphinx-copybutton>=0.5.2",
]
[tool.pytest.ini_options]
testpaths = ["src", "tests"]
minversion = 8.3
addopts = "-p 'no:legacypath' --doctest-modules"
filterwarnings = [
"error",
# action:message:category:module:line
"ignore::DeprecationWarning:traitlets", # Avoid debugging issues in PyCharm
]
[tool.mypy]
plugins = ['pydantic.mypy']
ignore_missing_imports = true
warn_unused_configs = true
allow_redefinition = true
disallow_untyped_defs = true
disallow_untyped_calls= true
files = ["src"]
[tool.ruff]
line-length = 88
extend-include = ["docs/**/*.pctpy"]
[tool.ruff.lint]
select = [
"E", # Pycodestyle Errors
"F", # Pyflakes
"UP", # Auto-upgrading of new Python features
"I", # Sort imports
"RUF", # Rules from ruff
"PERF", # Performance issues
]
[tool.ruff.lint.per-file-ignores]
"*.pctpy" = ["E402"]