Skip to content

Commit

Permalink
added __version__ to init in src
Browse files Browse the repository at this point in the history
  • Loading branch information
klmcadams committed Jul 19, 2023
1 parent 6ab227a commit 75618ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ansys/pre_commit_hooks/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
"""Initialize package level imports."""

try:
import importlib.metadata as importlib_metadata
except ModuleNotFoundError:
import importlib_metadata

__version__ = importlib_metadata.version(__name__.replace(".", "-"))

0 comments on commit 75618ba

Please sign in to comment.