forked from bauchdj/trieve-python-client-generator
-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (29 loc) · 850 Bytes
/
qa.yml
File metadata and controls
38 lines (29 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Python Code Quality
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
name: Run Ruff and pycompile
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install Ruff
run: pip install ruff
# - name: Run Ruff Check
# run: ruff check .
- name: Run Ruff Fix
run: ruff check --fix .
- name: Run Ruff Format
run: ruff format .
- name: Verify Code Compiles
run: find . -name "*.py" -exec python -m py_compile {} +