Skip to content

Commit

Permalink
copying mypy and flake8 config from fl4health
Browse files Browse the repository at this point in the history
  • Loading branch information
lotif committed Feb 15, 2024
1 parent 5051e17 commit e04d3fd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
max-line-length = 119
ignore = E203, W503
2 changes: 1 addition & 1 deletion florist/api/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@


@app.get("/api/python")
def hello_world():
def hello_world() -> str:
return "hello world"
11 changes: 11 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[mypy]
mypy_path=.
follow_imports = normal
ignore_missing_imports = True
install_types = True
pretty = True
non_interactive = True
disallow_untyped_defs = True
no_implicit_optional = True
check_untyped_defs = True
exclude = venv

0 comments on commit e04d3fd

Please sign in to comment.