Skip to content

Commit 3685ab5

Browse files
committed
enable github action for ruff
1 parent 958b015 commit 3685ab5

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/quality.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Code quality
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
8+
run:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
13+
- name: Acquire sources
14+
uses: actions/[email protected]
15+
16+
- name: Setup Python
17+
uses: actions/[email protected]
18+
with:
19+
python-version: "3.12"
20+
architecture: x64
21+
22+
- name: Apply caching of dependencies
23+
uses: actions/[email protected]
24+
with:
25+
path: ~/.cache/pip
26+
key: pip-${{ hashFiles('**/requirements-*.txt') }}
27+
28+
- name: Install dependencies
29+
run: |
30+
pip install -U pip setuptools wheel
31+
pip install -r requirements.txt -r dev-requirements.txt
32+
33+
- name: Run ruff
34+
run: |
35+
ruff format --diff .
36+
ruff check --diff .

0 commit comments

Comments
 (0)