8000
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.
1 parent 045bdf0 commit 4a9c02eCopy full SHA for 4a9c02e
.github/workflows/precommit.yml
@@ -0,0 +1,22 @@
1
+name: 'Lint, Codestyle and Code Compatibility checkers'
2
+on: [push, pull_request]
3
+jobs:
4
+ test:
5
+ runs-on: ubuntu-latest
6
+ steps:
7
+ - name: Check out repository
8
+ uses: actions/checkout@v3
9
+ - uses: actions/setup-python@v4
10
+ with:
11
+ python-version: '3.9.16'
12
+ cache: 'pip' # caching pip dependencies
13
+ - run: python -m pip install pre-commit
14
+ shell: bash
15
+ - run: python -m pip freeze --local
16
17
+ - uses: actions/cache@v3
18
19
+ path: ~/.cache/pre-commit
20
+ key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
21
+ - run: pre-commit run --show-diff-on-failure --color=always --all-files
22
0 commit comments