From 650765a9d334de59210879d062d50e7402acb035 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Sat, 28 Nov 2026 03:21:46 +0100 Subject: [PATCH] Add `flake8-quotes` --- noxfile.py | 1 + pyproject.toml | 7 +++++++ uv.lock | 21 +++++++++++++++++++++ 3 files changed, 29 insertions(+) diff --git a/noxfile.py b/noxfile.py index 84a941f..a8cd48b 100644 --- a/noxfile.py +++ b/noxfile.py @@ -192,6 +192,7 @@ def lint_code(session: Session) -> None: "flake8-docstrings", "flake8-pyproject", "flake8-pytest-style", + "flake8-quotes", "isort", # TODO: See comment on `mypy` below # 'mypy', diff --git a/pyproject.toml b/pyproject.toml index bbb6ecf..b9d2512 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -101,6 +101,7 @@ dev = [ "flake8-docstrings (>=1.7.0,<2.0.0)", "flake8-pyproject (>=1.2.4,<2.0.0)", "flake8-pytest-style (>=2.2.0,<3.0.0)", + "flake8-quotes (>=3.4.0,<4.0.0)", "mypy (>=2.4.1,<3.0.0)", ] @@ -272,6 +273,12 @@ show-source = true strictness = "long" # flake8-docstrings docstring-convention = "google" +# flake8-quotes +# Source: https://github.com/zheller/flake8-quotes#configuration +avoid-escape = true +docstring-quotes = "double" +inline-quotes = "double" +multiline-quotes = "double" # ============================== # flake8-pytest-style's settings diff --git a/uv.lock b/uv.lock index 2bb4d3d..d04b17d 100644 --- a/uv.lock +++ b/uv.lock @@ -1020,6 +1020,16 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/4d/de/36523c4defc0d02f1617de66e23cd18ad74b869d401269bba6d790abc95e/flake8_pytest_style-2.2.0-py3-none-any.whl", hash = "sha256:d01c4198a6c4e0ab759a92a0fa7710f10d83ec28e32a50ab6fb2e10f973a2f36", size = 22370, upload-time = "2025-10-20T07:52:23.82Z" }, ] +[[package]] +name = "flake8-quotes" +version = "3.4.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "flake8" }, + { name = "setuptools" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/dd/57/a173e3eb86072b7ee77650aca496b15d6886367d257f58ea9de5276e330a/flake8-quotes-3.4.0.tar.gz", hash = "sha256:aad8492fb710a2d3eabe68c5f86a1428de650c8484127e14c43d0504ba30276c", size = 14107, upload-time = "2024-02-10T21:58:22.357Z" } + [[package]] name = "folium" version = "1.0.0" @@ -3156,6 +3166,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/b2/de/7a9e77bd4c5f6eb11d90eb75807c1e1f0ea54997b05ae86d6fc5fa080c04/send2trash-2.2.0-py3-none-any.whl", hash = "sha256:7f540296d59744fbf2f88b0d6f3a484af78c94d3c20e0875a4d5eed61aef037c", size = 17436, upload-time = "2026-11-12T00:35:18.674Z" }, ] +[[package]] +name = "setuptools" +version = "84.2.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/70/b3/c19426f783614d625699a4b247faf628ea9ab1db228674491767b417f9e1/setuptools-84.2.1.tar.gz", hash = "sha256:3ff8b3b5492a0aa66960f4419365a86b84e013070d4313e4d4a6894f5d64d6bc", size = 1230289, upload-time = "2026-10-20T19:01:37.742Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ef/55/6dc6d6bb953bdfc52519a0059592c52b6e3b8ad51cf8256dffceb55b0610/setuptools-84.2.1-py3-none-any.whl", hash = "sha256:ca140b45d5325a9478f880e351484f62fef15f336462e449ca0c03c873d589c2", size = 876263, upload-time = "2026-10-20T19:01:35.678Z" }, +] + [[package]] name = "shapely" version = "2.2.0" @@ -3660,6 +3679,7 @@ dev = [ { name = "flake8-docstrings" }, { name = "flake8-pyproject" }, { name = "flake8-pytest-style" }, + { name = "flake8-quotes" }, { name = "isort" }, { name = "mypy" }, { name = "nox" }, @@ -3718,6 +3738,7 @@ dev = [ { name = "flake8-docstrings", specifier = ">=1.7.0,<2.0.0" }, { name = "flake8-pyproject", specifier = ">=1.2.4,<2.0.0" }, { name = "flake8-pytest-style", specifier = ">=2.2.0,<3.0.0" }, + { name = "flake8-quotes", specifier = ">=3.4.0,<4.0.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" },