From f34682dfbf09755ba48972d6e834b1b1f15c2fc4 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Mon, 5 Sep 2022 08:40:40 -0500 Subject: [PATCH 1/2] build(deps): Add flake8-comprehensions See also: https://github.com/adamchainz/flake8-comprehensions --- poetry.lock | 18 +++++++++++++++++- pyproject.toml | 3 ++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/poetry.lock b/poetry.lock index 63a48eca6..239a117e6 100644 --- a/poetry.lock +++ b/poetry.lock @@ -185,6 +185,18 @@ flake8 = ">=3.0.0" [package.extras] dev = ["coverage", "hypothesis", "hypothesmith (>=0.2)", "pre-commit"] +[[package]] +name = "flake8-comprehensions" +version = "3.10.0" +description = "A flake8 plugin to help you write better list/set/dict comprehensions." +category = "dev" +optional = false +python-versions = ">=3.7" + +[package.dependencies] +flake8 = ">=3.0,<3.2.0 || >3.2.0" +importlib-metadata = {version = "*", markers = "python_version < \"3.8\""} + [[package]] name = "furo" version = "2022.6.21" @@ -957,7 +969,7 @@ test = [] [metadata] lock-version = "1.1" python-versions = "^3.7" -content-hash = "4dd682d8c18a0ccbd336ee7d54331a7cc485ca8b8afc4fdd6c5288fca16d5bbd" +content-hash = "01a21031768112b50fddb746eb5dd982b5aa456b8e5f88b6803640e17fb6ce4a" [metadata.files] alabaster = [ @@ -1090,6 +1102,10 @@ flake8-bugbear = [ {file = "flake8-bugbear-22.8.23.tar.gz", hash = "sha256:de0717d11124a082118dd08387b34fd86b2721642ec2d8e92be66cfa5ea7c445"}, {file = "flake8_bugbear-22.8.23-py3-none-any.whl", hash = "sha256:1b0ebe0873d1cd55bf9f1588bfcb930db339018ef44a3981a26532daa9fd14a8"}, ] +flake8-comprehensions = [ + {file = "flake8-comprehensions-3.10.0.tar.gz", hash = "sha256:181158f7e7aa26a63a0a38e6017cef28c6adee71278ce56ce11f6ec9c4905058"}, + {file = "flake8_comprehensions-3.10.0-py3-none-any.whl", hash = "sha256:dad454fd3d525039121e98fa1dd90c46bc138708196a4ebbc949ad3c859adedb"}, +] furo = [ {file = "furo-2022.6.21-py3-none-any.whl", hash = "sha256:061b68e323345e27fcba024cf33a1e77f3dfd8d9987410be822749a706e2add6"}, {file = "furo-2022.6.21.tar.gz", hash = "sha256:9aa983b7488a4601d13113884bfb7254502c8729942e073a0acb87a5512af223"}, diff --git a/pyproject.toml b/pyproject.toml index 1560926c6..a4d41744f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -79,6 +79,7 @@ isort = "*" ### Lint ### flake8 = "*" flake8-bugbear = "^22.8.23" +flake8-comprehensions = "*" mypy = "*" [tool.poetry.extras] @@ -99,7 +100,7 @@ docs = [ test = ["pytest", "pytest-rerunfailures", "pytest-mock", "pytest-watcher"] coverage = ["codecov", "coverage", "pytest-cov"] format = ["black", "isort"] -lint = ["flake8", "flake8-bugbear", "mypy"] +lint = ["flake8", "flake8-bugbear", "flake8-comprehensions", "mypy"] [tool.mypy] strict = true From f712acaaad0fa68752ceccb6721d4f6a29b95ed7 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Mon, 5 Sep 2022 09:38:11 -0500 Subject: [PATCH 2/2] docs(CHANGES): Note flake8-comprehensions --- CHANGES | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES b/CHANGES index 749319aec..f8623b128 100644 --- a/CHANGES +++ b/CHANGES @@ -23,6 +23,7 @@ $ pip install --user --upgrade --pre libtmux ### Development - Add [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) (#408) +- Add [flake8-comprehensions](https://github.com/adamchainz/flake8-comprehensions) (#409) ### Documentation