From 6de8dc874795e5e204d9003e8232237c3e030f1f Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 3 Sep 2022 22:38:25 -0500 Subject: [PATCH 1/2] build(deps): Add flake8-bugbear See also: https://github.com/PyCQA/flake8-bugbear --- poetry.lock | 21 ++++++++++++++++++++- pyproject.toml | 3 ++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/poetry.lock b/poetry.lock index 19bc66665..63a48eca6 100644 --- a/poetry.lock +++ b/poetry.lock @@ -170,6 +170,21 @@ mccabe = ">=0.6.0,<0.7.0" pycodestyle = ">=2.7.0,<2.8.0" pyflakes = ">=2.3.0,<2.4.0" +[[package]] +name = "flake8-bugbear" +version = "22.8.23" +description = "A plugin for flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle." +category = "dev" +optional = false +python-versions = ">=3.6" + +[package.dependencies] +attrs = ">=19.2.0" +flake8 = ">=3.0.0" + +[package.extras] +dev = ["coverage", "hypothesis", "hypothesmith (>=0.2)", "pre-commit"] + [[package]] name = "furo" version = "2022.6.21" @@ -942,7 +957,7 @@ test = [] [metadata] lock-version = "1.1" python-versions = "^3.7" -content-hash = "efda75071ab0c8bf180900071d009becabfc0ef718bde0171d664495ae2a37fb" +content-hash = "4dd682d8c18a0ccbd336ee7d54331a7cc485ca8b8afc4fdd6c5288fca16d5bbd" [metadata.files] alabaster = [ @@ -1071,6 +1086,10 @@ flake8 = [ {file = "flake8-3.9.2-py2.py3-none-any.whl", hash = "sha256:bf8fd333346d844f616e8d47905ef3a3384edae6b4e9beb0c5101e25e3110907"}, {file = "flake8-3.9.2.tar.gz", hash = "sha256:07528381786f2a6237b061f6e96610a4167b226cb926e2aa2b6b1d78057c576b"}, ] +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"}, +] 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 1b8485d31..1560926c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,6 +78,7 @@ isort = "*" ### Lint ### flake8 = "*" +flake8-bugbear = "^22.8.23" mypy = "*" [tool.poetry.extras] @@ -98,7 +99,7 @@ docs = [ test = ["pytest", "pytest-rerunfailures", "pytest-mock", "pytest-watcher"] coverage = ["codecov", "coverage", "pytest-cov"] format = ["black", "isort"] -lint = ["flake8", "mypy"] +lint = ["flake8", "flake8-bugbear", "mypy"] [tool.mypy] strict = true From 4413bebdaae98ef063c9daf92cdddb96139c81b1 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 4 Sep 2022 07:47:47 -0500 Subject: [PATCH 2/2] docs(CHANGES): Note addition of flake8-bugbear --- CHANGES | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGES b/CHANGES index 8cb7b271c..749319aec 100644 --- a/CHANGES +++ b/CHANGES @@ -20,6 +20,10 @@ $ pip install --user --upgrade --pre libtmux all empty lines were filtered out. This will lead to a more accurate behavior when using {meth}`Pane.capture_pane`. Credit: @rockandska, via #405. +### Development + +- Add [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) (#408) + ### Documentation - Move to sphinx-autoissues, #406