Skip to content

Commit d27b2c8

Browse files
committed
Update ruff config for new version
1 parent 04f4751 commit d27b2c8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222

2323
# Run `ruff` using github formatting to enable automatic inline annotations.
2424
- name: Run ruff
25-
run: "ruff check --format=github ."
25+
run: "ruff check --output-format=github ."

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,20 @@ olli = "python -m olli"
4545
[tool.ruff]
4646
target-version = "py311"
4747
extend-exclude = [".cache"]
48+
select = ["ALL"]
4849
ignore = [
4950
"ANN002", "ANN003", "ANN101", "ANN102", "ANN401",
5051
"ARG003",
5152
"C901",
53+
"CPY001",
5254
"D100", "D104", "D105", "D107", "D203", "D212", "D214", "D215", "D416",
5355
"EM101",
5456
"PLR",
5557
"TRY003",
5658
]
5759
line-length = 120
58-
select = ["ALL"]
60+
unsafe-fixes = true
61+
preview = true
5962

6063
[tool.ruff.isort]
6164
order-by-type = false

0 commit comments

Comments
 (0)