Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4a9c02e

Browse filesBrowse files
committed
wip
1 parent 045bdf0 commit 4a9c02e
Copy full SHA for 4a9c02e

File tree

1 file changed

+22
-0
lines changed
Filter options

1 file changed

+22
-0
lines changed

‎.github/workflows/precommit.yml

Copy file name to clipboard
+22Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
shell: bash
17+
- uses: actions/cache@v3
18+
with:
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+
shell: bash

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.