Enable A in flake8 and ruff

This commit is contained in:
Alexander Hess 2026-11-30 21:40:43 +01:00
commit f266adad45
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

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