Skip to content

Commit

Permalink
Skip mypy installation for pypy<3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Unrud committed Jul 3, 2022
1 parent 14a3c3d commit c589c9f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ extras =
deps =
flake8
isort
mypy
# mypy installation fails with pypy<3.9
mypy; implementation_name!='pypy' or python_version>='3.9'
types-setuptools
pytest-cov
commands =
flake8 .
isort --check --diff .
mypy .
# Run mypy if it's installed
python -c 'import importlib.util, subprocess, sys; \
importlib.util.find_spec("mypy") \
and sys.exit(subprocess.run(["mypy", "."]).returncode) \
or print("mypy is not installed")'
pytest -r s --cov --cov-report=term --cov-report=xml .

[tool:isort]
Expand Down

0 comments on commit c589c9f

Please sign in to comment.