Enable UP in ruff
This commit is contained in:
parent
d0d5c92c55
commit
5dce8e6645
2 changed files with 8 additions and 1 deletions
|
|
@ -520,7 +520,7 @@ def clean_cwd(session: nox.Session) -> None:
|
||||||
session.run("rm", "-rf", path)
|
session.run("rm", "-rf", path)
|
||||||
|
|
||||||
|
|
||||||
def _expand(*patterns: str) -> cabc.Generator[pathlib.Path, None, None]:
|
def _expand(*patterns: str) -> cabc.Generator[pathlib.Path]:
|
||||||
"""Expand glob patterns into (resolved) paths.
|
"""Expand glob patterns into (resolved) paths.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
|
|
||||||
|
|
@ -231,6 +231,11 @@ select = [
|
||||||
"N8",
|
"N8",
|
||||||
# pydoclint => docstring matches implementation
|
# pydoclint => docstring matches implementation
|
||||||
"DOC",
|
"DOC",
|
||||||
|
# ========================================
|
||||||
|
# `ruff` only (no working `flake8` plugin)
|
||||||
|
# ========================================
|
||||||
|
# pyupgrade => Modern syntax for the targeted Python version
|
||||||
|
# "UP",
|
||||||
]
|
]
|
||||||
|
|
||||||
# By default, flake8 ignores some errors.
|
# By default, flake8 ignores some errors.
|
||||||
|
|
@ -489,6 +494,8 @@ select = [
|
||||||
"PLR",
|
"PLR",
|
||||||
# flake8-print => no `print()`
|
# flake8-print => no `print()`
|
||||||
"T20",
|
"T20",
|
||||||
|
# pyupgrade => Modern syntax for the targeted Python version
|
||||||
|
"UP",
|
||||||
]
|
]
|
||||||
|
|
||||||
extend-ignore = [
|
extend-ignore = [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue