-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
152 lines (140 loc) · 3.52 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "typelib"
dynamic = ["version"]
description = "A toolkit for marshalling, unmarshalling, and runtime validation leveraging type annotations."
authors = [{ name = "Sean Stewart", email = "[email protected]" }]
readme = "README.md"
requires-python = "~=3.9"
keywords = ["typing", "data", "annotations", "validation", "serdes"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Utilities",
"Typing :: Typed",
]
dependencies = [
"inflection ~= 0.5",
"more-itertools ~= 10.4",
"pendulum ~= 3.0",
"typing-extensions ~= 4.12",
"importlib_metadata >=7.1.0,<8; python_version < '3.10'",
]
[project.optional-dependencies]
json = [
"orjson ~= 3.4",
]
[project.urls]
Repository = "https://github.com/seandstewart/typelib"
Homepage = "https://seandstewart.github.io/python-typelib/latest/"
[dependency-groups]
benchmarks = []
dev = [
{ include-group = "docs" },
{ include-group = "lint" },
{ include-group = "test" },
"orjson ~= 3.4",
"tox",
"hatch-vcs",
"git-cliff>=2.8.0",
]
docs = [
"mkdocs-material[imaging]",
"mkdocstrings[python]",
"mkdocs-awesome-pages-plugin",
"mkdocs-gen-files",
"pymdown-extensions",
"mike",
"mkdocs-section-index",
"mkdocs-literate-nav",
"mkdocs-open-in-new-tab",
]
lint = [
"pre-commit",
]
test = [
"pytest",
"pytest-cov",
"pytest-parametrize-suite",
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
version_scheme = "no-guess-dev"
[tool.coverage.run]
branch = true
data_file = "coverage.db"
include = [
"src/**/*",
]
[tool.coverage.paths]
source = [
"src/*",
]
[tool.coverage.report]
skip_empty = true
sort = "Cover"
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"def __str__",
"if self.debug:",
"if settings.DEBUG",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
"if (typing\\.)?TYPE_CHECKING:",
"class\\s\\w+\\((typing\\.)?Protocol(\\[.*\\])?\\):",
"@(abc\\.)?abstractmethod",
"@(typing\\.)?overload",
".*\\.\\.\\."
]
omit = [
"dist/*",
"tests/*",
"docs/*",
".venv/*",
"benchmark/*",
]
[tool.ruff.lint]
extend-select = [
# Bugbear
"B",
# McCabe Complexity
"C9",
# isort
"I",
# flake8-simplify
"SIM",
# Future annotation
"FA"
]
[tool.ruff.lint.per-file-ignores]
# Ignore `E402` (import violations) in all `__init__.py` files
"__init__.py" = ["E402", "F403"]
[tool.ruff.lint.isort]
known-local-folder = ["tests"]
extra-standard-library = ["typing_extensions", "graphlib"]
[tool.mypy]
mypy_path = "$MYPY_CONFIG_FILE_DIR/src/"
no_namespace_packages = true
python_version = "3.12"
ignore_missing_imports = true
no_strict_optional = true
follow_imports = "silent"
exclude = ".*tests/.*|.*docs/.*"