From 25591e3d15bd534611614af4ee55674d68ce66e0 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 3 Sep 2022 22:38:20 -0500 Subject: [PATCH 1/3] 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 ca59a3253c5..63efb574a0a 100644 --- a/poetry.lock +++ b/poetry.lock @@ -164,6 +164,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" @@ -939,7 +954,7 @@ test = [] [metadata] lock-version = "1.1" python-versions = "^3.7" -content-hash = "879f6fe801aecaf2ae4022c94abc31149fdeffa1dae54e8937aa00b8992d1e41" +content-hash = "70120b061971b32db17df8d047fc815a4ade054278c4fe65c792e5813dd8060a" [metadata.files] aafigure = [ @@ -1068,6 +1083,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 a2128bc36f5..8afa6457e77 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,6 +85,7 @@ isort = "*" ### Lint ### flake8 = "*" +flake8-bugbear = "^22.8.23" mypy = "*" types-colorama = "^0.4.15" types-docutils = "^0.19.0" @@ -109,7 +110,7 @@ docs = [ test = ["pytest", "pytest-rerunfailures", "pytest-mock", "pytest-watcher"] coverage = ["codecov", "coverage", "pytest-cov"] format = ["black", "isort"] -lint = ["flake8", "mypy", "types-colorama", "types-docutils"] +lint = ["flake8", "flake8-bugbear", "mypy", "types-colorama", "types-docutils"] [build-system] requires = ["poetry_core>=1.0.0"] From 36dfdb5f6af366a5d66287b140d595391d12747a Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 4 Sep 2022 07:46:06 -0500 Subject: [PATCH 2/3] chore(pyproject): Lint with dprint dprint fmt --config ~/.dprint.conf -- pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8afa6457e77..d77372cebdc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -124,6 +124,6 @@ module = [ "IPython.*", "ptpython.*", "prompt_toolkit.*", - "bpython" + "bpython", ] ignore_missing_imports = true From cdf36368d5207dd218baa073b0becc0b1774319f Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 4 Sep 2022 07:47:55 -0500 Subject: [PATCH 3/3] docs(CHANGES): Note addition of flake8-bugbear --- CHANGES | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGES b/CHANGES index dcf4114cc68..b7d79c0a193 100644 --- a/CHANGES +++ b/CHANGES @@ -19,6 +19,10 @@ $ pipx install --suffix=@next 'tmuxp' --pip-args '\--pre' --force - _Insert changes/features/fixes for next release here_ +### Development + +- Add [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) (#807) + ## tmuxp 1.13.1 (2022-08-21) ### Bug fixes