Skip to content

Commit

Permalink
Replace mypy with pytype.
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoknjas committed Oct 2, 2024
1 parent b67c8e5 commit 2906201
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 22 deletions.
21 changes: 0 additions & 21 deletions tests/test_mypy.py

This file was deleted.

9 changes: 9 additions & 0 deletions tests/test_pytype.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import subprocess
from subprocess import PIPE

def test_pytype():
result = subprocess.run(
['pytype', 'vulture/core.py', '--disable=attribute-error'],
stdout=PIPE, stderr=PIPE, universal_newlines=True
)
assert result.stdout.strip().endswith('Success: no errors found')
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==7.4.2
pytest-cov==4.0.0
mypy==1.11.0
pytype==2024.9.13
commands =
pytest {posargs}
# Install package as wheel in all envs (https://hynek.me/articles/turbo-charge-tox/).
Expand Down

0 comments on commit 2906201

Please sign in to comment.