diff --git a/docs/conf.py b/docs/conf.py index 83dd985..5a5ea18 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -2,6 +2,7 @@ https://www.sphinx-doc.org/en/master/usage/configuration.html """ + from mutt_language_server import __version__ as version # type: ignore from mutt_language_server._metainfo import ( # type: ignore author, diff --git a/src/mutt_language_server/__init__.py b/src/mutt_language_server/__init__.py index 9b415f3..821dc74 100644 --- a/src/mutt_language_server/__init__.py +++ b/src/mutt_language_server/__init__.py @@ -1,6 +1,7 @@ r"""Provide ``__version__`` for `importlib.metadata.version() `_. """ + try: from ._version import __version__, __version_tuple__ # type: ignore except ImportError: # for setuptools-generate diff --git a/src/mutt_language_server/__main__.py b/src/mutt_language_server/__main__.py index e5a55f5..18c8c68 100644 --- a/src/mutt_language_server/__main__.py +++ b/src/mutt_language_server/__main__.py @@ -1,6 +1,7 @@ r"""This module can be called by `python -m `_. """ + import logging from argparse import ArgumentParser, RawDescriptionHelpFormatter from contextlib import suppress diff --git a/src/mutt_language_server/misc/__init__.py b/src/mutt_language_server/misc/__init__.py index 3280410..343b47c 100644 --- a/src/mutt_language_server/misc/__init__.py +++ b/src/mutt_language_server/misc/__init__.py @@ -1,6 +1,7 @@ r"""Misc ======== """ + import re from typing import Any diff --git a/src/mutt_language_server/server.py b/src/mutt_language_server/server.py index 308ed9f..f224d63 100644 --- a/src/mutt_language_server/server.py +++ b/src/mutt_language_server/server.py @@ -1,6 +1,7 @@ r"""Server ========== """ + import os import re from typing import Any diff --git a/src/mutt_language_server/utils.py b/src/mutt_language_server/utils.py index 51201ad..9f6a6ae 100644 --- a/src/mutt_language_server/utils.py +++ b/src/mutt_language_server/utils.py @@ -1,6 +1,7 @@ r"""Utils ========= """ + import json import os from typing import Any diff --git a/tests/test_utils.py b/tests/test_utils.py index d995cc9..6f1eee1 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1,4 +1,5 @@ r"""Test utils.""" + from mutt_language_server.utils import get_schema