aboutsummaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-07-25 21:42:27 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-07-25 22:05:20 +0200
commit210ee835662877c4e5a94450d0656680875e0e18 (patch)
tree79823306a0aea842541a8b2586fcf47b0ced0eb5 /setup.cfg
parentConfigure linters. (diff)
downloadmu4web-210ee835662877c4e5a94450d0656680875e0e18.tar.gz
mu4web-210ee835662877c4e5a94450d0656680875e0e18.tar.xz
Fix and harden linter checks.
Harden the requirements of mypy, and also check against flake8 docstrings. And fix all errors and warnings resulting from that.
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup.cfg b/setup.cfg
index b6ab484..b05edd9 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -32,6 +32,9 @@ include_package_data = True
[mypy]
ignore_missing_imports = True
disallow_untyped_defs = True
+check_untyped_defs = True
+strict = True
+warn_unused_ignores = False
[mypy-mu4web.main]
# NOTE Flask endpoints aren't typed.
@@ -40,5 +43,5 @@ disallow_untyped_defs = True
disallow_untyped_defs = False
[flake8]
-ignore = E731
+ignore = E731,D105,D107
max-line-length = 100