1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-07 06:25:21 +02:00

fix: bump ruff (#3275)
Some checks are pending
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
Docker Nightly Production / Backend Server Tests (push) Waiting to run
Docker Nightly Production / Frontend and End-to-End Tests (push) Waiting to run
Docker Nightly Production / Build Tagged Release (push) Blocked by required conditions
Docker Nightly Production / Notify Discord (push) Blocked by required conditions

* bump ruff

* updated deprecated cli usage

* fixed deprecated pyproject layout

* fixed .format string

* fixed another deprecated setting
This commit is contained in:
Michael Genson 2024-03-09 12:40:08 -06:00 committed by GitHub
parent 130813ffe4
commit 315d5b370e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 40 additions and 42 deletions

View file

@ -112,22 +112,7 @@ strict_optional = true
[tool.ruff]
line-length = 120
output-format = "text"
# Enable Pyflakes `E` and `F` codes by default.
ignore = ["F403", "TID252", "B008"]
select = [
"E", # pycodestyles
"F", # pyflakes
"I", # isort
"T", # flake8-print
"UP", # pyupgrade
"B", # flake8-bugbear
# "ANN", # flake8-annotations
# "C", # McCabe complexity
# "RUF", # Ruff specific
# "BLE", # blind-except
]
output-format = "concise"
# Exclude a variety of commonly ignored directories.
exclude = [
@ -155,9 +140,25 @@ exclude = [
# Assume Python 3.10.
target-version = "py310"
[tool.ruff.per-file-ignores]
[tool.ruff.lint]
# Enable Pyflakes `E` and `F` codes by default.
ignore = ["F403", "TID252", "B008"]
select = [
"E", # pycodestyles
"F", # pyflakes
"I", # isort
"T", # flake8-print
"UP", # pyupgrade
"B", # flake8-bugbear
# "ANN", # flake8-annotations
# "C", # McCabe complexity
# "RUF", # Ruff specific
# "BLE", # blind-except
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "E501"]
[tool.ruff.mccabe]
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10