fix: bump ruff (#3275)

* 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
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