Skip to content

Commit

Permalink
chore: Resolve failing pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
freshavocado7 committed May 28, 2024
1 parent c66f844 commit 1ac7b22
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ repos:
additional_dependencies:
- "prettier@^3.2.5"
- "prettier-plugin-tailwindcss@^0.5.14"
- "tailwind-scrollbar@^3.1.0"
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.2.0
hooks:
Expand All @@ -134,3 +135,6 @@ repos:
- "eslint-plugin-deprecation@^2.0.0"
- "eslint-plugin-tailwindcss@^3.15.1"
- "eslint-plugin-storybook@^0.8.0"
- "eslint-plugin-react@^7.34.1"
- "eslint-plugin-react-hooks@^4.6.2"
- "eslint-plugin-react-refresh@^0.4.5"
15 changes: 9 additions & 6 deletions frontend/fetch-version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@


def run_git_command(cmd: list[str]):
return subprocess.run(
["git", *cmd],
check=True,
capture_output=True,
cwd=pathlib.Path(__file__).parent,
).stdout.decode()
try:
return subprocess.run(
["git", *cmd],
check=True,
capture_output=True,
cwd=pathlib.Path(__file__).parent,
).stdout.decode()
except subprocess.CalledProcessError:
return "No tags found"


if os.getenv("MODE") == "production":
Expand Down

0 comments on commit 1ac7b22

Please sign in to comment.