From 23b8e670c29042291ee4e6bd28108ce1945ce2f5 Mon Sep 17 00:00:00 2001 From: Andreas Ellewsen <andreas@ellewsen.no> Date: Tue, 31 Aug 2021 12:33:54 +0200 Subject: [PATCH] Make mypy see all files in the project Type checking is now also done for management commands and the usual missing imports errors are ignored. --- greg/management/__init__.py | 0 greg/management/commands/__init__.py | 0 greg/management/commands/start_schedule_tasks.py | 2 +- mypy.ini | 11 ++++++++++- 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 greg/management/__init__.py create mode 100644 greg/management/commands/__init__.py diff --git a/greg/management/__init__.py b/greg/management/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/greg/management/commands/__init__.py b/greg/management/commands/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/greg/management/commands/start_schedule_tasks.py b/greg/management/commands/start_schedule_tasks.py index 2280d566..d86b854b 100644 --- a/greg/management/commands/start_schedule_tasks.py +++ b/greg/management/commands/start_schedule_tasks.py @@ -1,4 +1,4 @@ -import logging +import logging.config import signal import sys from threading import Event diff --git a/mypy.ini b/mypy.ini index 4c67fd45..96c6844e 100644 --- a/mypy.ini +++ b/mypy.ini @@ -27,4 +27,13 @@ ignore_missing_imports = True ignore_missing_imports = True [mypy-reversion.*] -ignore_missing_imports = True \ No newline at end of file +ignore_missing_imports = True + +[mypy-daemon.*] +ignore_missing_imports = True + +[mypy-lockfile.*] +ignore_missing_imports = True + +[mypy-pika_context_manager.*] +ignore_missing_imports = True -- GitLab