diff --git a/noxfile.py b/noxfile.py index e0a55b1..3a93a33 100644 --- a/noxfile.py +++ b/noxfile.py @@ -194,6 +194,7 @@ def lint_code(session: Session) -> None: "flake8-pytest-style", "flake8-quotes", "flake8-sfs", + "flake8-todos", "isort", # TODO: See comment on `mypy` below # 'mypy', diff --git a/pyproject.toml b/pyproject.toml index 7dbe5fd..6950c44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -103,6 +103,7 @@ dev = [ "flake8-pytest-style (>=2.2.0,<3.0.0)", "flake8-quotes (>=3.4.0,<4.0.0)", "flake8-sfs (>=1.0.1,<2.0.0)", + "flake8-todos (>=0.3.1,<0.4.0)", "mypy (>=2.4.1,<3.0.0)", ] @@ -225,6 +226,8 @@ select = [ "PT0", # flake8-sfs => use f-strings as the only type of string formatting "SFS", + # flake8-todos => unify TODOs + "T00", ] # By default, flake8 ignores some errors. @@ -243,6 +246,8 @@ extend-ignore = [ "PT023", # Allow f-strings as the only type of string formatting. "SFS301", + # TODOs need neither an author nor an issue. + "T002", "T003", ] per-file-ignores = [ diff --git a/uv.lock b/uv.lock index bcd06b7..6f2d59b 100644 --- a/uv.lock +++ b/uv.lock @@ -1042,6 +1042,19 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/d1/a8/dc3b3dbe52808d3f09504950d20963a3e19ab1bf6492790b70b8b2e32565/flake8_sfs-1.0.1-py3-none-any.whl", hash = "sha256:ef5f6b3e6d958894fe4c953ecf8e6156d9ab620c7e138f68af5c0f9bfdb4f6b4", size = 6651, upload-time = "2025-09-21T09:31:41.166Z" }, ] +[[package]] +name = "flake8-todos" +version = "0.3.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "flake8" }, + { name = "pycodestyle" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/88/69/e4ecde7f50c3c874046f03dc7bda67d7be8e7cc28380f3f44c07456b45ad/flake8_todos-0.3.1.tar.gz", hash = "sha256:942101a08f831d7d9f7d864d86169f3bcfaf8b6d56a004c0280eb51725266b16", size = 7851, upload-time = "2024-02-09T08:50:45.907Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ba/8e/805907f920d171eda033ac825d23595072a1c04dd716106c8bc8ec9eec9e/flake8_todos-0.3.1-py3-none-any.whl", hash = "sha256:0b4faca80bec49be7bf8e5dd46eec12f619e09cecac8a84a87775272300222b2", size = 7358, upload-time = "2024-02-09T08:50:43.66Z" }, +] + [[package]] name = "folium" version = "1.0.0" @@ -3693,6 +3706,7 @@ dev = [ { name = "flake8-pytest-style" }, { name = "flake8-quotes" }, { name = "flake8-sfs" }, + { name = "flake8-todos" }, { name = "isort" }, { name = "mypy" }, { name = "nox" }, @@ -3753,6 +3767,7 @@ dev = [ { name = "flake8-pytest-style", specifier = ">=2.2.0,<3.0.0" }, { name = "flake8-quotes", specifier = ">=3.4.0,<4.0.0" }, { name = "flake8-sfs", specifier = ">=1.0.1,<2.0.0" }, + { name = "flake8-todos", specifier = ">=0.3.1,<0.4.0" }, { name = "isort", specifier = ">=9.0.2,<10.0.0" }, { name = "mypy", specifier = ">=2.4.1,<3.0.0" }, { name = "nox", specifier = ">=2026.10.20" },