aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2024-02-25 20:29:41 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2024-02-25 20:29:41 +0100
commit49c1e89b9a4fbb266d5924852881075cd6ba467a (patch)
tree607c090b1add28d6374e588e119d46d78feee814
parent2f4a229b7af6cbb4955ad57ed4769eab3f17bedc (diff)
qa fixes
-rw-r--r--lesana/__init__.py7
-rw-r--r--lesana/command.py2
-rw-r--r--pyproject.toml8
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