Skip to content

Commit

Permalink
its subproc err #2
Browse files Browse the repository at this point in the history
  • Loading branch information
majidaldo committed Jan 5, 2025
1 parent db10a1b commit 5163672
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pytqshacl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "119"
__version__ = "120"
from .topquadrant import ver as tq_ver
topquadrant_version = tq_ver
from .run import validate, infer
3 changes: 2 additions & 1 deletion tasks.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
pkg = 'pytqshacl'

from subprocess import CalledProcessError
def get_rev():
from subprocess import check_output as run
return run('git rev-parse --abbrev-ref HEAD', text=True, shell=True).strip()
try:
rev = get_rev()
except FileNotFoundError: # no git in cicd maybe
except CalledProcessError: # no git in cicd maybe
rev = '{NO GIT}' #


Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5163672

Please sign in to comment.