We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
0 parents commit be89f69Copy full SHA for be89f69
action.yml
@@ -0,0 +1,17 @@
1
+name: pre-commit
2
+description: run pre-commit
3
+inputs:
4
+ extra_args:
5
+ description: options to pass to pre-commit run
6
+ required: false
7
+ default: "--all-files"
8
+
9
+runs:
10
+ using: composite
11
+ steps:
12
+ - uses: actions/cache@v3
13
+ with:
14
+ path: ~/.cache/pre-commit
15
+ key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
16
+ - run: pre-commit run --show-diff-on-failure --color=always ${{ inputs.extra_args }}
17
+ shell: bash
0 commit comments