Skip to content

Commit 2f5d326

Browse files
committed
Fix issues and switch to uv for tox run install
`uv` works in parallel and runs far faster
1 parent 629f917 commit 2f5d326

2 files changed

Lines changed: 7 additions & 10 deletions

File tree

dataclass_wizard/type_def.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class ExplicitNullType:
166166
__slots__ = () # Saves memory by preventing the creation of instance dictionaries
167167

168168
# Class-level instance variable for singleton control
169-
_instance: ExplicitNullType | None = None
169+
_instance: "ExplicitNullType | None" = None
170170

171171
def __new__(cls):
172172
if cls._instance is None:

pyproject.toml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -222,17 +222,17 @@ exclude_also = [
222222
"if TYPE_CHECKING.*:",
223223
# This will exclude all lines starting with something like
224224
# if PY311_OR_ABOVE: or if PY310_BETA:.
225-
"if PY\d+_\w+:",
225+
'if PY\d+_\\w+:',
226226
# Don't complain if tests don't hit defensive assertion code:
227227
"raise AssertionError",
228228
"raise NotImplementedError",
229229
# Ellipsis are used as placeholders in python 3 that will be overridden
230-
"\.\.\.",
230+
"\\.\\.\\.",
231231
# Don't complain if non-runnable code isn't run:
232232
"if 0:",
233-
"if __name__ == .__main__.:"
233+
"if __name__ == .__main__.:",
234234
# Don't complain if alias functions aren't run:
235-
"alias:"
235+
"alias:",
236236
]
237237
ignore_errors = true
238238

@@ -259,11 +259,8 @@ commands = flake8 dataclass_wizard tests
259259
setenv =
260260
PYTHONPATH = {toxinidir}
261261
PYTEST_ADDOPTS = --ignore-glob=*integration*
262-
deps =
263-
-r{toxinidir}/requirements-dev.txt
264-
-r{toxinidir}/requirements-test.txt
265262
commands =
266-
pip install -U pip
267-
pip install -e .[all]
263+
pip install -U pip uv
264+
uv pip install -e .[all]
268265
pytest --basetemp={envtmpdir}
269266
"""

0 commit comments

Comments
 (0)