Skip to content

Commit 908d522

Browse files
committed
update ruff to 0.3.3
1 parent 4ce2e25 commit 908d522

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/on_pull_request.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
# not to have GHA download an (at the time of writing) 4 GB cache
2121
# of PyTorch and other dependencies.
2222
- name: Install Ruff
23-
run: pip install ruff==0.1.6
23+
run: pip install ruff==0.3.3
2424
- name: Run Ruff
2525
run: ruff .
2626
lint-js:

pyproject.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
target-version = "py39"
44

5+
[tool.ruff.lint]
6+
57
extend-select = [
68
"B",
79
"C",
@@ -25,10 +27,10 @@ ignore = [
2527
"W605", # invalid escape sequence, messes with some docstrings
2628
]
2729

28-
[tool.ruff.per-file-ignores]
30+
[tool.ruff.lint.per-file-ignores]
2931
"webui.py" = ["E402"] # Module level import not at top of file
3032

31-
[tool.ruff.flake8-bugbear]
33+
[tool.ruff.lint.flake8-bugbear]
3234
# Allow default arguments like, e.g., `data: List[str] = fastapi.Query(None)`.
3335
extend-immutable-calls = ["fastapi.Depends", "fastapi.security.HTTPBasic"]
3436

0 commit comments

Comments
 (0)