Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,17 @@ Tidelift = "https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-att


[dependency-groups]
tests-mypy = ['pytest-mypy-plugins; platform_python_implementation == "CPython" and python_version >= "3.10"']
mypy = [
{ include-group = "tests" },
'pytest-mypy-plugins; platform_python_implementation == "CPython" and python_version >= "3.10"'
]
tests = [
{ include-group = "tests-mypy" },
# For regression test to ensure cloudpickle compat doesn't break.
'cloudpickle; platform_python_implementation == "CPython"',
"hypothesis",
"pympler",
"pytest",
"pytest-xdist[psutil]",
]
cov = [
{ include-group = "tests" },
Expand Down Expand Up @@ -162,6 +165,7 @@ filterwarnings = ["once::Warning", "ignore:::pympler[.*]"]
[tool.coverage.run]
parallel = true
branch = true
patch = ["subprocess"]
source_pkgs = ["attr", "attrs"]

[tool.coverage.paths]
Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ package = wheel
wheel_build_env = .pkg
dependency_groups =
tests: tests
mypy: tests-mypy
mypy: mypy
commands =
tests: pytest {posargs}
tests: pytest {posargs:-n auto}
mypy: pytest -k test_mypy
mypy: mypy tests/typing_example.py
mypy: mypy src/attrs/__init__.pyi src/attr/__init__.pyi src/attr/_typing_compat.pyi src/attr/_version_info.pyi src/attr/converters.pyi src/attr/exceptions.pyi src/attr/filters.pyi src/attr/setters.pyi src/attr/validators.pyi

Expand All @@ -39,7 +40,7 @@ set_env =
COVERAGE_PROCESS_START={toxinidir}/pyproject.toml
PYTHONWARNINGS=d
commands =
coverage run -m pytest {posargs}
coverage run -m pytest {posargs:-n auto}

[testenv:coverage-report]
# Keep base_python in-sync with .python-version-default
Expand Down
70 changes: 37 additions & 33 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.