mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-28 10:25:05 +08:00
update ruff to 0.3.3
This commit is contained in:
parent
4ce2e25c0b
commit
908d522057
2
.github/workflows/on_pull_request.yaml
vendored
2
.github/workflows/on_pull_request.yaml
vendored
@ -20,7 +20,7 @@ jobs:
|
|||||||
# not to have GHA download an (at the time of writing) 4 GB cache
|
# not to have GHA download an (at the time of writing) 4 GB cache
|
||||||
# of PyTorch and other dependencies.
|
# of PyTorch and other dependencies.
|
||||||
- name: Install Ruff
|
- name: Install Ruff
|
||||||
run: pip install ruff==0.1.6
|
run: pip install ruff==0.3.3
|
||||||
- name: Run Ruff
|
- name: Run Ruff
|
||||||
run: ruff .
|
run: ruff .
|
||||||
lint-js:
|
lint-js:
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
target-version = "py39"
|
target-version = "py39"
|
||||||
|
|
||||||
|
[tool.ruff.lint]
|
||||||
|
|
||||||
extend-select = [
|
extend-select = [
|
||||||
"B",
|
"B",
|
||||||
"C",
|
"C",
|
||||||
@ -25,10 +27,10 @@ ignore = [
|
|||||||
"W605", # invalid escape sequence, messes with some docstrings
|
"W605", # invalid escape sequence, messes with some docstrings
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.ruff.per-file-ignores]
|
[tool.ruff.lint.per-file-ignores]
|
||||||
"webui.py" = ["E402"] # Module level import not at top of file
|
"webui.py" = ["E402"] # Module level import not at top of file
|
||||||
|
|
||||||
[tool.ruff.flake8-bugbear]
|
[tool.ruff.lint.flake8-bugbear]
|
||||||
# Allow default arguments like, e.g., `data: List[str] = fastapi.Query(None)`.
|
# Allow default arguments like, e.g., `data: List[str] = fastapi.Query(None)`.
|
||||||
extend-immutable-calls = ["fastapi.Depends", "fastapi.security.HTTPBasic"]
|
extend-immutable-calls = ["fastapi.Depends", "fastapi.security.HTTPBasic"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user