Skip to content

Commit

Permalink
Only run pytype for python < 3.13.
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoknjas committed Oct 3, 2024
1 parent 6ce5dbf commit 6bc297f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tests/test_pytype.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import subprocess
import sys
import pytest


@pytest.mark.skipif(
sys.version_info >= (3, 13), reason="Need python < 3.13 for pytype"
)
def test_pytype():
result = subprocess.run(
["pytype", "vulture/core.py", "--disable=attribute-error"],
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ deps =
pint # Use latest version to catch API changes.
pytest
pytest-cov
pytype
pytype ; python_version < '3.13'
commands =
pytest {posargs}
# Install package as wheel in all envs (https://hynek.me/articles/turbo-charge-tox/).
Expand Down

0 comments on commit 6bc297f

Please sign in to comment.