From 210ee835662877c4e5a94450d0656680875e0e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 25 Jul 2023 21:42:27 +0200 Subject: 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. --- setup.cfg | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'setup.cfg') 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 -- cgit v1.2.3