Enable RSE in flake8 and ruff
This commit is contained in:
parent
e612e33f59
commit
4023f32662
1 changed files with 20 additions and 0 deletions
|
|
@ -110,6 +110,7 @@ dev = [
|
|||
"flake8-pyproject (>=1.2.4,<2.0.0)",
|
||||
"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)",
|
||||
|
|
@ -245,6 +246,8 @@ select = [
|
|||
"PT0",
|
||||
# flake8-quotes => Use double quotes everywhere (complying with black)
|
||||
"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
|
||||
|
|
@ -559,6 +562,8 @@ select = [
|
|||
"Q",
|
||||
# flake8-return ("R5") => Consistent return statements
|
||||
"RET",
|
||||
# flake8-raise ("R1") => No parentheses for exceptions without arguments
|
||||
"RSE",
|
||||
# flake8-bandit => Common security issues
|
||||
"S",
|
||||
# flake8-simplify => Simpler code
|
||||
|
|
|
|||
Loading…
Reference in a new issue