Skip to content

Commit

Permalink
Use importlib.metadata to get the version.
Browse files Browse the repository at this point in the history
  • Loading branch information
ezio-melotti authored Oct 13, 2023
1 parent e47c7e1 commit 1c6d8f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sphinxlint/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"""Sphinx linter."""

__version__ = "0.6.8"
import importlib.metadata

from sphinxlint.sphinxlint import check_file, check_text

__version__ = importlib.metadata.version(__name__)

__all__ = ["check_text", "check_file"]

0 comments on commit 1c6d8f0

Please sign in to comment.