2 Commits

Author SHA1 Message Date
Thomas Lindner 7d67b59f5a run linting/typechecking only once 2 months ago
Thomas Lindner 877b79c681 disallow untyped defs 2 months ago
  1. 13
      setup.cfg
  2. 2
      src/basicpy/__init__.py
  3. 2
      tests/test_basicpy.py

13
setup.cfg

@ -30,19 +30,24 @@ console_scripts =
basicpy = basicpy:main
[tox:tox]
envlist = py38, py39
envlist = lint, py38, py39
isolated_build = True
[testenv]
[testenv:lint]
skip_install = True
deps =
black
flake8
mypy
pytest
commands =
black --check --diff src tests
flake8 src tests
mypy src tests
mypy --disallow-untyped-defs src tests
[testenv]
deps =
pytest
commands =
pytest tests
[flake8]

2
src/basicpy/__init__.py

@ -1,2 +1,2 @@
def main():
def main() -> None:
print("Hello World")

2
tests/test_basicpy.py

@ -1,2 +1,2 @@
def test_basicpy():
def test_basicpy() -> None:
pass
Loading…
Cancel
Save