diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d7c55d7..47bf489 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,6 +19,16 @@ just check just docs ``` +A git pre-commit hook that will run `just check` at every commit and block it if something is wrong can be installed with: +```sh title="Command Line" +just install-hook +``` + +You can uninstall it with: +```sh title="Command Line" +just uninstall-hook +``` + See more recipes with: ```sh title="Command Line" just help diff --git a/src/knuckles/__init__.py b/src/knuckles/__init__.py index 97a6266..eab9bd7 100644 --- a/src/knuckles/__init__.py +++ b/src/knuckles/__init__.py @@ -1,3 +1,5 @@ +from importlib.metadata import version + from ._api import RequestMethod from ._media_retrieval import SubtitlesFileFormat from ._subsonic import Subsonic @@ -27,7 +29,6 @@ from .models._system import License, SubsonicResponse from .models._user import User from .models._video import AudioTrack, Captions, Video, VideoInfo -from importlib.metadata import version __version__ = version("knuckles") diff --git a/tests/api/test_system.py b/tests/api/test_system.py index ac95b28..ce704b4 100644 --- a/tests/api/test_system.py +++ b/tests/api/test_system.py @@ -1,10 +1,11 @@ +from importlib.metadata import version from typing import Any import responses from dateutil import parser from knuckles import Subsonic, __version__ from responses import Response -from importlib.metadata import version + from tests.conftest import AddResponses