We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8b6bde commit 59d6773Copy full SHA for 59d6773
pyproject.toml
@@ -89,5 +89,5 @@ extend-select = [
89
]
90
91
[tool.mypy]
92
-files = ["src"]
+files = ["src", "tests"]
93
strict = "true"
src/myapplication/main.py
@@ -1,8 +1,8 @@
1
-def hello_world():
+def hello_world() -> str:
2
return "Hello World"
3
4
5
-def main():
+def main() -> None:
6
print(hello_world()) # noqa: T201 print only used as placeholder :)
7
8
tests/test_myapplication.py
@@ -1,6 +1,6 @@
from myapplication.main import hello_world
-def test_hello_world():
+def test_hello_world() -> None:
if hello_world() != "Hello World":
raise ValueError('Expected value to be "Hello World"')
0 commit comments