Skip to content

Commit 1c6d8f0

Browse files
authored
Use importlib.metadata to get the version.
1 parent e47c7e1 commit 1c6d8f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sphinxlint/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
"""Sphinx linter."""
22

3-
__version__ = "0.6.8"
3+
import importlib.metadata
44

55
from sphinxlint.sphinxlint import check_file, check_text
66

7+
__version__ = importlib.metadata.version(__name__)
8+
79
__all__ = ["check_text", "check_file"]

0 commit comments

Comments
 (0)