From 49c1e89b9a4fbb266d5924852881075cd6ba467a Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sun, 25 Feb 2024 20:29:41 +0100 Subject: qa fixes --- lesana/__init__.py | 7 +------ lesana/command.py | 2 +- pyproject.toml | 8 -------- 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/lesana/__init__.py b/lesana/__init__.py index 6665ca8..1a3fd54 100644 --- a/lesana/__init__.py +++ b/lesana/__init__.py @@ -1,6 +1 @@ -from .collection import Collection, Entry, TemplatingError - -# prevent spurious warnings from pyflakes -assert Collection -assert Entry -assert TemplatingError +from .collection import Collection, Entry, TemplatingError # noqa: F401 diff --git a/lesana/command.py b/lesana/command.py index afbf5bf..52e6dd1 100644 --- a/lesana/command.py +++ b/lesana/command.py @@ -8,7 +8,7 @@ import hazwaz try: import argcomplete except ImportError: - argcomplete = False + argcomplete = None # type: ignore from . import Collection, Entry, TemplatingError diff --git a/pyproject.toml b/pyproject.toml index 13cb29b..3437f23 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,11 +58,3 @@ Changelog = "https://git.sr.ht/~valhalla/lesana/tree/master/item/CHANGELOG.rst" [tool.setuptools_scm] version_file = "lesana/_version.py" - -[tool.mypy.overrides] -module = [ - "xapian", - "argcomplete", - "hazwaz", -] -ignore_missing_imports = true -- cgit v1.2.3