Browse Source

disallow untyped defs

master
Thomas Lindner 2 months ago
parent
commit
877b79c681
  1. 2
      setup.cfg
  2. 2
      src/basicpy/__init__.py
  3. 2
      tests/test_basicpy.py

2
setup.cfg

@ -42,7 +42,7 @@ deps =
commands =
black --check --diff src tests
flake8 src tests
mypy src tests
mypy --disallow-untyped-defs src tests
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