-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
214 lines (190 loc) · 5.04 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
[tool.poetry]
name = "pydantic-strict-partial"
version = "0.6.1"
description = "Makes partial Pydantic models without making fields nullable."
authors = ["Adrian Dankiv <adr-007@ukr.net>"]
license = "MIT"
readme = "README.md"
keywords = ["pydantic", "partial", "fastapi"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Pydantic :: 2",
]
packages = [
{ include = "pydantic_strict_partial", from = "." },
]
homepage = "https://github.com/ADR-007/pydantic-strict-partial"
[tool.poetry.dependencies]
python = "^3.10"
pydantic = "^2.1"
[tool.poetry.group.dev.dependencies]
ruff = "^0.3.5"
mypy = "^1.9.0"
coverage = "^7.4.4"
pytest = "^8.1.1"
tox = "^4.14.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.tox]
legacy_tox_ini = """
[tox]
min_version = 4.0
env_list =
lint
type
py{310,311,312}-pydantic2.6
py312-pydantic{2.1,2.x}
coverage
[gh-actions]
python =
3.12: lint, type, py312-pydantic{2.1,2.x}
3.11: py311-pydantic2.6
3.10: py310-pydantic2.6
[testenv]
deps =
pytest
coverage
pydantic
commands =
coverage run -m pytest tests.py
coverage html -d ./reports/htmlcov --omit="tests.py"
coverage xml -o ./reports/coverage.xml --omit="tests.py"
coverage report --skip-empty --fail-under 90
[testenv:lint]
deps =
ruff
mypy
pytest
commands =
ruff check pydantic_strict_partial tests.py
ruff format --check pydantic_strict_partial tests.py
mypy pydantic_strict_partial tests.py
"""
[tool.semantic_release]
version_toml = [
"pyproject.toml:tool.poetry.version",
]
assets = []
commit_message = "{version}\n\nAutomatically generated by python-semantic-release"
commit_parser = "angular"
logging_use_named_masks = false
major_on_zero = true
tag_format = "v{version}"
[tool.semantic_release.branches.main]
match = "(main|master)"
prerelease_token = "rc"
prerelease = false
[tool.semantic_release.changelog]
template_dir = "templates"
changelog_file = "CHANGELOG.md"
exclude_commit_patterns = []
[tool.semantic_release.changelog.environment]
block_start_string = "{%"
block_end_string = "%}"
variable_start_string = "{{"
variable_end_string = "}}"
comment_start_string = "{#"
comment_end_string = "#}"
trim_blocks = false
lstrip_blocks = false
newline_sequence = "\n"
keep_trailing_newline = false
extensions = []
autoescape = true
[tool.semantic_release.commit_author]
env = "GIT_COMMIT_AUTHOR"
default = "semantic-release <semantic-release>"
[tool.semantic_release.commit_parser_options]
allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"]
minor_tags = ["feat"]
patch_tags = ["fix", "perf", "build", "docs"]
[tool.semantic_release.remote]
name = "origin"
type = "github"
ignore_token_for_push = false
[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*"]
upload_to_vcs_release = true
[tool.mypy]
[[tool.mypy.overrides]]
module = "tests"
disable_error_code = [
"call-arg",
]
[tool.ruff]
[tool.ruff.lint]
select = [
"F", # Pyflakes
"W", "E", # pycodestyle (E
"C90", # mccabe
"I", # isort
"N", # pep8-naming
"D", # pydocstyle
"UP", # pyupgrade
"YTT", # flake8-2020
"ANN", # flake8-annotations
"ASYNC", # flake8-async
"S", # flake8-bandit
"BLE", # flake8-blind-except
# "FBT", # flake8-boolean-trap
"B", # flake8-bugbear
"A", # flake8-builtins
"COM", # flake8-commas
# "CPY", # flake8-copyright
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"T10", # flake8-debugger
# "DJ", # flake8-django
# "EM", # flake8-errmsg
"EXE", # flake8-executable
# "FA", # flake8-future-annotations
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
# "G", # flake8-logging-format
"INP", # flake8-no-pep420
"PIE", # flake8-pie
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
# "Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SLF", # flake8-self
"SLOT", # flake8-slots
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"TCH", # flake8-type-checking
"INT", # flake8-gettext
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
# "TD", # flake8-todos
# "FIX", # flake8-fixme
"ERA", # eradicate
# "PD", # pandas-vet
"PGH", # pygrep-hooks
"PL", # Pylint
"TRY", # tryceratops
"FLY", # flynt
# "NPY", # NumPy-specific rules
# "AIR", # Airflow
"PERF", # Perflint
# "FURB", # refurb (in preview)
# "LOG", # flake8-logging (in preview)
"RUF", # Ruff-specific rules
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.per-file-ignores]
"**/test[_s]*.py" = [
"S101", "S103",
"D100", "D101", "D102", "D103",
"ANN102",
"TRY003",
]