Remove flake8-return
It crashes on Python 3.14 (`ast.NameConstant` is gone) and is unmaintained. `ruff` covers its rules.
This commit is contained in:
parent
80d2573f0d
commit
b947337bd1
1 changed files with 4 additions and 24 deletions
|
|
@ -113,7 +113,6 @@ dev = [
|
|||
"flake8-pytest-style (>=2.2.0,<3.0.0)",
|
||||
"flake8-quotes (>=3.4.0,<4.0.0)",
|
||||
"flake8-raise (>=0.0.5,<0.1.0)",
|
||||
"flake8-return (>=1.2.0,<2.0.0)",
|
||||
"flake8-sfs (>=1.0.1,<2.0.0)",
|
||||
"flake8-simplify (>=0.31.1,<0.32.0)",
|
||||
"flake8-tidy-imports (>=4.12.0,<5.0.0)",
|
||||
|
|
@ -258,8 +257,6 @@ select = [
|
|||
"Q0",
|
||||
# flake8-raise => No parentheses for exceptions without arguments
|
||||
"R1",
|
||||
# flake8-return => Consistent return statements
|
||||
"R5",
|
||||
# flake8-sfs => Use f-strings as the only type of string formatting
|
||||
"SFS",
|
||||
# flake8-simplify => Simpler code
|
||||
|
|
@ -309,6 +306,8 @@ select = [
|
|||
# "PTH",
|
||||
# flake8-pyi (only two codes) => `t.Self` instead of the class name
|
||||
# "PYI019", "PYI034",
|
||||
# flake8-return => Consistent return statements
|
||||
# "RET",
|
||||
# Ruff-specific rules => Fewer bugs and cleaner code
|
||||
# "RUF",
|
||||
# flake8-self => No access to private members from outside
|
||||
|
|
@ -341,10 +340,6 @@ extend-ignore = [
|
|||
"PD005",
|
||||
# Let's not do `@pytest.mark.no_cover()` instead of `@pytest.mark.no_cover`.
|
||||
"PT023",
|
||||
# `ruff`'s RET504 does this better, as it allows statements in between.
|
||||
"R504",
|
||||
# An `elif` after a `return` keeps a case distinction together.
|
||||
"R505",
|
||||
# Allow f-strings as the only type of string formatting.
|
||||
"SFS301",
|
||||
# `bool()` around a comparison can be deliberate (`ruff` omits this rule).
|
||||
|
|
@ -637,8 +632,6 @@ select = [
|
|||
"PT",
|
||||
# flake8-quotes => Use double quotes everywhere
|
||||
"Q",
|
||||
# flake8-return ("R5") => Consistent return statements
|
||||
"RET",
|
||||
# flake8-raise ("R1") => No parentheses for exceptions without arguments
|
||||
"RSE",
|
||||
# flake8-bandit => Common security issues
|
||||
|
|
@ -684,6 +677,8 @@ select = [
|
|||
"PTH",
|
||||
# flake8-pyi (only two codes) => `t.Self` instead of the class name
|
||||
"PYI019", "PYI034",
|
||||
# flake8-return => Consistent return statements
|
||||
"RET",
|
||||
# Ruff-specific rules => Fewer bugs and cleaner code
|
||||
"RUF",
|
||||
# flake8-self => No access to private members from outside
|
||||
|
|
|
|||
Loading…
Reference in a new issue