Skip to content

Commit edffda7

Browse files
committed
Set up ruff linting
1 parent 44e9299 commit edffda7

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/ruff.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
check-ruff:
5+
runs-on: ubuntu-latest
6+
continue-on-error: true
7+
steps:
8+
- uses: actions/checkout@v4
9+
- name: Install Python
10+
uses: actions/setup-python@v5
11+
with:
12+
python-version: "3.11"
13+
- name: Install dependencies
14+
run: |
15+
python -m pip install --upgrade pip
16+
pip install ruff
17+
# Update output format to enable automatic inline annotations.
18+
- name: Run Ruff
19+
run: ruff check --output-format=github .

ruff.toml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[lint]
2+
ignore = [
3+
# Ignore module import not at top of file
4+
"E402",
5+
# Annoying style checks
6+
"E7",
7+
]

0 commit comments

Comments
 (0)