8000 chore: migrate settings to `ruff.toml` · RustPython/RustPython@7c8e5c9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7c8e5c9

Browse files
committed
chore: migrate settings to ruff.toml
1 parent ece9590 commit 7c8e5c9

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ jobs:
328328
- name: Ensure docs generate no warnings
329329
run: cargo doc
330330
- name: run python lint
331-
run: ruff check extra_tests wasm examples --exclude='./.*',./Lib,./vm/Lib,./benches/ --select=E9,F63,F7,F82
331+
run: ruff check
332332
- name: install prettier
333333
run: yarn global add prettier && echo "$(yarn global bin)" >>$GITHUB_PATH
334334
- name: check wasm code with prettier

ruff.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
include = [
2+
"examples/**/*.py",
3+
"extra_tests/**/*.py",
4+
"wasm/**/*.py",
5+
]
6+
7+
exclude = [
8+
".*",
9+
"Lib",
10+
"vm/Lib",
11+
"benches",
12+
]
13+
14+
[lint]
15+
select = [
16+
"E9", # pycodestyle (error)
17+
"F63", # pyflakes
18+
"F7",
19+
"F82",
20+
]

0 commit comments

Comments
 (0)
0