aboutsummaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-05-02 03:00:59 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-05-02 03:00:59 +0200
commitd17967eea2e42466103347257002451f17b5d5e8 (patch)
treed299b451ade590ab3cbf90c703c5914cad2fef4e /setup.cfg
parentHopefully fix installation issues. (diff)
downloadmu4web-d17967eea2e42466103347257002451f17b5d5e8.tar.gz
mu4web-d17967eea2e42466103347257002451f17b5d5e8.tar.xz
Configure linters.
Introduce flake8 and mypy for better error checking. Fix all errors and warnings emitted by those. Also fix type error with `url_for`.
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg10
1 files changed, 10 insertions, 0 deletions
diff --git a/setup.cfg b/setup.cfg
index 688b4fa..b6ab484 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -29,6 +29,16 @@ include_package_data = True
[options.packages.find]
+[mypy]
+ignore_missing_imports = True
+disallow_untyped_defs = True
+
+[mypy-mu4web.main]
+# NOTE Flask endpoints aren't typed.
+# Prefer to move everything except flask endpoints
+# to proper modules
+disallow_untyped_defs = False
+
[flake8]
ignore = E731
max-line-length = 100