Allow and unify the usage of TODOs

This commit is contained in:
Alexander Hess 2024-09-27 15:29:33 +02:00
parent 06d003b615
commit 4c0c7887e5
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
3 changed files with 23 additions and 1 deletions

View file

@ -205,6 +205,7 @@ def lint(session: nox.Session) -> None:
"flake8-isort",
"flake8-quotes",
"flake8-string-format",
"flake8-todos",
"flake8-pyproject",
"flake8-pytest-style",
"mypy",

20
poetry.lock generated
View file

@ -704,6 +704,24 @@ files = [
[package.dependencies]
flake8 = "*"
[[package]]
name = "flake8-todos"
version = "0.3.1"
description = "Python linter to check TODO comments for consistency and best practice."
optional = false
python-versions = ">=3.8"
files = [
{file = "flake8_todos-0.3.1-py3-none-any.whl", hash = "sha256:0b4faca80bec49be7bf8e5dd46eec12f619e09cecac8a84a87775272300222b2"},
{file = "flake8_todos-0.3.1.tar.gz", hash = "sha256:942101a08f831d7d9f7d864d86169f3bcfaf8b6d56a004c0280eb51725266b16"},
]
[package.dependencies]
flake8 = "*"
pycodestyle = "*"
[package.extras]
dev = ["isort[pyproject]", "pytest"]
[[package]]
name = "identify"
version = "2.6.1"
@ -1681,4 +1699,4 @@ type = ["pytest-mypy"]
[metadata]
lock-version = "2.0"
python-versions = "^3.9"
content-hash = "e9e490a864511852844926112978e57c1421328f6231437f8f280ddfc88cecde"
content-hash = "d5e420036c32cb6043efd303ae45663287a7bda00036c94fd9497f9346fde701"

View file

@ -57,6 +57,7 @@ flake8-eradicate = "^1.5"
flake8-isort = "^6.1"
flake8-quotes = "^3.4"
flake8-string-format = "^0.3"
flake8-todos = "^0.3"
flake8-pyproject = "^1.2"
flake8-pytest-style = "^2.0"
mypy = "^1.11"
@ -171,6 +172,7 @@ select = [
"PT", # flake8-pytest-style => enforce a consistent style with pytest
"Q", # flake8-quotes => use double quotes everywhere (complying with black)
"S", # flake8-bandit => common security issues
"T00", # flake8-todos => unify TODOs
"T10", # flake8-debugger => no debugger usage
# violations not covered by `ruff` below
@ -355,6 +357,7 @@ select = [
"PT", # flake8-pytest-style => enforce a consistent style with pytest
"Q", # flake8-quotes => use double quotes everywhere
"S", # flake8-bandit => common security issues
"TD", # flake8-todos => unify TODOs
"T10", # flake8-debugger => no debugger usage
# violations not covered by `flake8` above