Skip to content

Commit

Permalink
Merge pull request #14 from Ericsson/pre-commit-github-action
Browse files Browse the repository at this point in the history
Create pre-commit Github action
  • Loading branch information
vareb authored Nov 14, 2024
2 parents eb72df0 + 4e8f352 commit 7be1c81
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: pre-commit

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
3 changes: 1 addition & 2 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
distribution: 'temurin'
java-version: '21' # PlantUML requires Java; set up a compatible Java version.


- name: Download latest PlantUML release
run: |
Expand All @@ -43,4 +43,3 @@ jobs:
- name: Test with pytest
run: |
uv run pytest
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ repos:
rev: 1.13.0 # represents the used version of JS Beautify as well
hooks:
- id: js-beautify
files: script\.js
args: [--end-with-newline] # list of arguments like '--editorconfig', '--end-with-newline', '--wrap-attributes=auto', '--wrap-line-length=120'

0 comments on commit 7be1c81

Please sign in to comment.