Skip to content

Commit

Permalink
pre-commit for python + java
Browse files Browse the repository at this point in the history
  • Loading branch information
natikgadzhi committed Dec 16, 2024
1 parent cf38398 commit d6e0f14
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ exclude: |
^.*?/\.venv/.*$|
^.*?/node_modules/.*$|
# Specific directories
^.*?/charts/.*$|
^airbyte-integrations/bases/base-normalization/.*$|
^.*?/normalization_test_output/.*$|
# Specific files
^.*?/pnpm-lock\.yaml$|
^.*?/source-amplitude/unit_tests/api_data/zipped\.json$|
Expand Down Expand Up @@ -54,9 +52,9 @@ repos:
additional_dependencies: [github.com/google/[email protected]]
files: \.(java|kt|py)$

# - id: spotless
# name: Format Java files with Spotless
# entry: mvn -f spotless-maven-pom.xml spotless:apply
# language: system
# files: \.(java|kt|gradle)$
# pass_filenames: false
- id: spotless
name: Format Java files with Spotless
entry: bash -c 'command -v mvn >/dev/null 2>&1 || { echo "Maven not installed, skipping spotless" >&2; exit 0; }; mvn -f spotless-maven-pom.xml spotless:apply'
language: system
files: \.(java|kt|gradle)$
pass_filenames: false

0 comments on commit d6e0f14

Please sign in to comment.