Skip to content

Commit

Permalink
chore: Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
anth-volk committed Sep 18, 2024
1 parent 4c3ac72 commit 85fdf34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/fetch_version.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Note: Action must be run in Python 3.11 or later
import tomllib


def fetch_version():
with open("pyproject.toml", "rb") as f:
pyproject = tomllib.load(f)
return pyproject["project"]["version"]


if __name__ == "__main__":
print(fetch_version())
print(fetch_version())

0 comments on commit 85fdf34

Please sign in to comment.