Enable A in flake8 and ruff
This commit is contained in:
parent
00aff456c3
commit
f266adad45
1 changed files with 23 additions and 1 deletions
|
|
@ -96,6 +96,7 @@ dev = [
|
|||
"flake8-black (>=0.5.0,<0.6.0)",
|
||||
"flake8-broken-line (>=1.0.0,<2.0.0)",
|
||||
"flake8-bugbear (>=26.11.22,<27.0.0)",
|
||||
"flake8-builtins (>=3.2.0,<4.0.0)",
|
||||
"flake8-commas (>=4.0.0,<5.0.0)",
|
||||
"flake8-comprehensions (>=3.17.0,<4.0.0)",
|
||||
"flake8-debugger (>=4.1.2,<5.0.0)",
|
||||
|
|
@ -212,6 +213,8 @@ select = [
|
|||
"N400",
|
||||
# flake8-bugbear => opinionated bugs and design flaws
|
||||
"B0", "B3", "B9",
|
||||
# flake8-builtins => No shadowing of builtins
|
||||
"A0",
|
||||
# flake8-commas => better comma placements
|
||||
"C8",
|
||||
# flake8-comprehensions => better comprehensions
|
||||
|
|
@ -260,6 +263,8 @@ ignore = []
|
|||
# If --ignore is passed on the command
|
||||
# line, still ignore the following:
|
||||
extend-ignore = [
|
||||
# `ruff`'s A003 does this better, as it only flags actual shadowing
|
||||
"A003",
|
||||
# Too long line => duplicate with E501.
|
||||
"B950",
|
||||
# PEP 257 documents the arguments of `__init__()` in its own docstring.
|
||||
|
|
@ -472,6 +477,8 @@ select = [
|
|||
# ===================================
|
||||
# Violations also covered by `flake8`
|
||||
# ===================================
|
||||
# flake8-builtins => No shadowing of builtins
|
||||
"A",
|
||||
# flake8-annotations => enforce type checking for functions
|
||||
"ANN0", "ANN2",
|
||||
# flake8-unused-arguments ("U100") => declared function arguments must be used
|
||||
|
|
|
|||
Loading…
Reference in a new issue