Enable YTT in flake8 and ruff

This commit is contained in:
Alexander Hess 2026-11-30 23:43:49 +01:00
commit 567bb713e2
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -91,6 +91,7 @@ dev = [
# Code Analyzers
"flake8 (>=7.5.0,<8.0.0)",
"flake8-2020 (>=1.8.1,<2.0.0)",
"flake8-annotations (>=3.3.1,<4.0.0)",
"flake8-bandit (>=4.1.1,<5.0.0)",
"flake8-black (>=0.5.0,<0.6.0)",
@ -212,6 +213,8 @@ select = [
# =======
# plugins
# =======
# flake8-2020 => Correct `sys.version` checks
"YTT",
# flake8-annotations => Enforce type checking for functions
"ANN0", "ANN2", "ANN3",
# flake8-bandit => Common security issues
@ -584,6 +587,8 @@ select = [
"TID",
# tryceratops => Clean exception handling
"TRY",
# flake8-2020 => Correct `sys.version` checks
"YTT",
# =======================================
# Violations not covered by `flake8` above
# =======================================