Skip to content

Commit eb1db37

Browse files
committed
Move ruff settings into ruff.toml
1 parent ad551b9 commit eb1db37

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/ruff.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
pip install ruff
1717
# Update output format to enable automatic inline annotations.
1818
- name: Run Ruff
19-
run: ruff check --output-format=github --select F822,PLC0414,RUF022 --preview .
19+
run: ruff check --output-format=github .

ruff.toml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[lint]
2+
preview = true
3+
select = [
4+
# Defaults
5+
"E4", "E7", "E9", "F",
6+
# Undefined export
7+
"F822",
8+
# Useless import alias
9+
"PLC0414"
10+
]
11+
12+
# Ignore module import not at top of file
13+
ignore = ["E402"]

0 commit comments

Comments
 (0)