Skip to content

Commit f985e42

Browse files
committed
add ruff to linter
1 parent b186c35 commit f985e42

File tree

3 files changed

+26
-31
lines changed

3 files changed

+26
-31
lines changed

.github/workflows/black.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Set up Python
13+
uses: actions/setup-python@v4
14+
with:
15+
python-version: '3.10' # or any version your project uses
16+
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install black ruff
21+
22+
- name: Run Black
23+
run: black --check .
24+
25+
- name: Run Ruff (no formatting)
26+
run: ruff check . --no-fix

pyproject.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,3 @@ exclude = ["tests*"]
6262

6363
[tool.setuptools.package-data]
6464
"*" = ["**/*.txt", "**/*.json"]
65-
66-
[tool.ruff]
67-
# Run Ruff as a linter (formatting rules disabled)
68-
exclude = [".venv"]
69-
ignore = ["E501", "W291", "W293", "E302", "E303", "E305"]
70-
line-length = 88 # Match Black's default
71-
target-version = "py310"

0 commit comments

Comments
 (0)