diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f60139385..64b0dddc5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,7 +25,7 @@ static-type-check: - apt-get update - apt-get install -y mypy script: - - mypy --ignore-missing-imports . + - mypy . unit-tests: stage: test diff --git a/pyproject.toml b/pyproject.toml index fb28b3f97..311abe849 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,3 +81,27 @@ disable = [ "too-many-arguments", # Has not resulted in a refactoring "too-many-ancestors", # Easy to hit when using Django ] + +# Ignore missing type stubs for some libraries. Try to keep this list minimal +# and use type annotations where available. +[[tool.mypy.overrides]] +module = [ + "aptsources.*", + "augeas.*", + "axes.*", + "captcha.*", + "cherrypy.*", + "configobj.*", + "dbus.*", + "django.*", + "gi.*", + "pam.*", + "pgi.*", + "plinth.tests.config_local", + "pytest_splinter.*", + "ruamel.*", + "selenium.*", + "splinter.*", + "stronghold.*", +] +ignore_missing_imports = true