From 04bc89b55436d296026a48acd827991d6bec37a7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Jun 2024 19:57:36 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/conf.py | 1 + src/xilinx_language_server/__init__.py | 1 + src/xilinx_language_server/__main__.py | 1 + src/xilinx_language_server/server.py | 1 + tests/server_test.py | 1 + 5 files changed, 5 insertions(+) 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