-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
100 lines (84 loc) · 2.08 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
100
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "extendable_pydantic"
authors = [{name = "Laurent Mignon", email = "[email protected]"}]
readme = "README.md"
license = {file = "LICENSE"}
classifiers = [
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
]
dynamic = ["version", "description"]
dependencies = [
"extendable>=1.2.0",
"pydantic>=2.0.2",
"wrapt",
]
requires-python = ">=3.7"
[project.optional-dependencies]
test = [
"pytest",
"coverage[toml]",
]
mypy = [
"mypy>=1.4.1",
]
release = [
"towncrier",
"bumpversion",
]
[project.urls]
Source = "https://github.com/lmignon/extendable-pydantic"
[tool.hatch.version]
path="src/extendable_pydantic/version.py"
[tool.hatch.build]
include = ["src/extendable_pydantic", "extendable_pydantic_patcher.pth"]
# TODO add typodoo_activate.pth to editable wheel?
directory = "dist"
[tool.hatch.build.targets.wheel]
sources = ["src"]
[tool.isort]
profile = "black"
multi_line_output = 3
[tool.coverage.run]
branch = true
source_pkgs = ["extendable_pydantic"]
[tool.coverage.paths]
source = ["src", ".tox/*/site-packages"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
]
[tool.ruff]
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
# "I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
lint.ignore = [
"E501", # line too long, handled by black
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/test_forward_refs.py" = ["F821"]
[[tool.mypy.overrides]]
module = "pydantic.main"
implicit_reexport = true
[[tool.mypy.overrides]]
module="pydantic._internal._generate_schema"
implicit_reexport = true
[tool.towncrier]
name = "Extendable Pydantic"
package = "extendable_pydantic"
package_dir = "src"
filename = "HISTORY.rst"
directory = "news"
issue_format = "`#{issue} <https://github.com/lmignon/extendable-pydantic/issues/{issue}>`_"
title_format = "{version} ({project_date})"