diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f98b3cb9b78..1170125df75 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -53,7 +53,7 @@ repos: - id: spotless name: Format Java files with Spotless - entry: bash -c 'command -v mvn >/dev/null 2>&1 || { if [ -z "$CI" ]; then echo "Maven not installed, skipping spotless" >&2; exit 0; fi }; mvn -f spotless-maven-pom.xml spotless:apply' + entry: bash -c 'command -v mvn >/dev/null 2>&1 || { echo "Maven not installed. Install with brew install maven" >&2; exit 1; }; mvn -f spotless-maven-pom.xml spotless:apply' language: system files: \.(java|kt|gradle)$ pass_filenames: false diff --git a/Makefile b/Makefile index 468f46d5b40..5ca8812e3d0 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ tools.pre-commit.install.Linux: tools.pre-commit.install.Darwin: @echo "Installing pre-commit with brew..." - @brew install pre-commit + @brew install pre-commit maven @echo "Pre-commit installation complete" tools.git-hooks.install: tools.airbyte-ci.install tools.pre-commit.install.$(OS) tools.git-hooks.clean ## Setup pre-commit hooks