diff --git a/docs/conf.py b/docs/conf.py index 06f4ea8..cf574d1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -2,6 +2,7 @@ https://www.sphinx-doc.org/en/master/usage/configuration.html """ + from xilinx_language_server import __version__ as version # type: ignore from xilinx_language_server._metainfo import ( # type: ignore author, diff --git a/src/xilinx_language_server/__init__.py b/src/xilinx_language_server/__init__.py index 9b415f3..821dc74 100644 --- a/src/xilinx_language_server/__init__.py +++ b/src/xilinx_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/xilinx_language_server/__main__.py b/src/xilinx_language_server/__main__.py index bf9315e..beee17b 100644 --- a/src/xilinx_language_server/__main__.py +++ b/src/xilinx_language_server/__main__.py @@ -1,6 +1,7 @@ r"""This module can be called by `python -m `_. """ + from argparse import ArgumentParser, RawDescriptionHelpFormatter from contextlib import suppress from datetime import datetime diff --git a/src/xilinx_language_server/server.py b/src/xilinx_language_server/server.py index 62353b7..15e19b9 100644 --- a/src/xilinx_language_server/server.py +++ b/src/xilinx_language_server/server.py @@ -1,6 +1,7 @@ r"""Server ========== """ + import json import os import re diff --git a/tests/server_test.py b/tests/server_test.py index 39b89b1..aef45dc 100644 --- a/tests/server_test.py +++ b/tests/server_test.py @@ -1,4 +1,5 @@ r"""Test server""" + from xilinx_language_server.server import get_document