Skip to content

Commit b92f383

Browse files
ci: Add linting workflow
1 parent da6dbb7 commit b92f383

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/linter.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Linting
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
PIP_DISABLE_PIP_VERSION_CHECK: 1
7+
8+
jobs:
9+
linting:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python 3.x
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: 3.x
20+
21+
- name: Install requirements
22+
run: |
23+
set -xe
24+
python -m pip install ruff
25+
26+
- name: Lint with ruff
27+
run: |
28+
set -xe
29+
python -m ruff --per-file-ignores="__init__.py:F401" --per-file-ignores="__init__.py:E402" .

0 commit comments

Comments
 (0)