diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ec8dda9..43bfb28 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: @@ -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" diff --git a/frontend/fetch-version.py b/frontend/fetch-version.py index ec3ef5c..c839100 100644 --- a/frontend/fetch-version.py +++ b/frontend/fetch-version.py @@ -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":