From 3934e4379e6445720fe991bd0263936a9542601b Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 8 Dec 2022 19:28:02 +0100 Subject: first try with mypy It would be nice to gradually improve the typing situation in Fietsboek. At least the parts that do not do heavy metaprogramming should have types. For most of the API, we already have types in the doc strings, so those could be removed then. --- .mypy.ini | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .mypy.ini (limited to '.mypy.ini') diff --git a/.mypy.ini b/.mypy.ini new file mode 100644 index 0000000..79f0c44 --- /dev/null +++ b/.mypy.ini @@ -0,0 +1,14 @@ +[mypy] +follow_imports = silent +check_untyped_defs = True +allow_redefinition = True +exclude = fietsboek/updater/scripts/.+\.py + +[mypy-pyramid.*] +ignore_missing_imports = True + +[mypy-sqlalchemy.*] +ignore_missing_imports = True + +[mypy-zope.*] +ignore_missing_imports = True -- cgit v1.2.3 From c7d80bf42c4a43b504a2ce80ae0f4501007b748f Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 8 Dec 2022 20:41:12 +0100 Subject: type hints for fietsboek.util --- .mypy.ini | 3 +++ 1 file changed, 3 insertions(+) (limited to '.mypy.ini') diff --git a/.mypy.ini b/.mypy.ini index 79f0c44..ed220e3 100644 --- a/.mypy.ini +++ b/.mypy.ini @@ -10,5 +10,8 @@ ignore_missing_imports = True [mypy-sqlalchemy.*] ignore_missing_imports = True +[mypy-webob.*] +ignore_missing_imports = True + [mypy-zope.*] ignore_missing_imports = True -- cgit v1.2.3