From 718ff097ec7bd97172b5d81f9629859792bb412f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 9 Jan 2024 05:42:26 +0000 Subject: [PATCH 1/2] Bump flake8 from 6.1.0 to 7.0.0 Bumps [flake8](https://github.com/pycqa/flake8) from 6.1.0 to 7.0.0. - [Commits](https://github.com/pycqa/flake8/compare/6.1.0...7.0.0) --- updated-dependencies: - dependency-name: flake8 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- poetry.lock | 16 ++++++++-------- pyproject.toml | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/poetry.lock b/poetry.lock index 54f19f6b..145bdc98 100644 --- a/poetry.lock +++ b/poetry.lock @@ -104,19 +104,19 @@ test = ["pytest (>=6)"] [[package]] name = "flake8" -version = "6.1.0" +version = "7.0.0" description = "the modular source code checker: pep8 pyflakes and co" optional = false python-versions = ">=3.8.1" files = [ - {file = "flake8-6.1.0-py2.py3-none-any.whl", hash = "sha256:ffdfce58ea94c6580c77888a86506937f9a1a227dfcd15f245d694ae20a6b6e5"}, - {file = "flake8-6.1.0.tar.gz", hash = "sha256:d5b3857f07c030bdb5bf41c7f53799571d75c4491748a3adcd47de929e34cd23"}, + {file = "flake8-7.0.0-py2.py3-none-any.whl", hash = "sha256:a6dfbb75e03252917f2473ea9653f7cd799c3064e54d4c8140044c5c065f53c3"}, + {file = "flake8-7.0.0.tar.gz", hash = "sha256:33f96621059e65eec474169085dc92bf26e7b2d47366b70be2f67ab80dc25132"}, ] [package.dependencies] mccabe = ">=0.7.0,<0.8.0" pycodestyle = ">=2.11.0,<2.12.0" -pyflakes = ">=3.1.0,<3.2.0" +pyflakes = ">=3.2.0,<3.3.0" [[package]] name = "gitdb" @@ -260,13 +260,13 @@ files = [ [[package]] name = "pyflakes" -version = "3.1.0" +version = "3.2.0" description = "passive checker of Python programs" optional = false python-versions = ">=3.8" files = [ - {file = "pyflakes-3.1.0-py2.py3-none-any.whl", hash = "sha256:4132f6d49cb4dae6819e5379898f2b8cce3c5f23994194c24b77d5da2e36f774"}, - {file = "pyflakes-3.1.0.tar.gz", hash = "sha256:a0aae034c444db0071aa077972ba4768d40c830d9539fd45bf4cd3f8f6992efc"}, + {file = "pyflakes-3.2.0-py2.py3-none-any.whl", hash = "sha256:84b5be138a2dfbb40689ca07e2152deb896a65c3a3e24c251c5c62489568074a"}, + {file = "pyflakes-3.2.0.tar.gz", hash = "sha256:1c61603ff154621fb2a9172037d84dca3500def8c8b630657d1701f026f8af3f"}, ] [[package]] @@ -383,4 +383,4 @@ dev = ["doc8", "flake8", "flake8-import-order", "rstcheck[sphinx]", "sphinx"] [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "0bc3acb3d17717c8784eb34d8b361a691f23cc38d90d4331d3bfd5b13dee3924" +content-hash = "e4aa33254c5e71ff4fe0d7383aeeb98b6e26a6e81d662b7fd0c2a64bbc2f492a" diff --git a/pyproject.toml b/pyproject.toml index d23f0b47..7c67a29e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ python = "^3.9" yamllint = "^v1.33.0" codespell = "^2.2.6" black = "^23.12" -flake8 = "^6.1.0" +flake8 = "^7.0.0" pep8-naming = "^0.13.3" pytest = "^7.4.4" GitPython = "^3.1.40" From 8cca726bde1eaee00489b92c300915f35b860580 Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 8 Jan 2024 21:43:37 -0800 Subject: [PATCH 2/2] Update `flake8` version in template installation docs This is now the version used as standard in all Arduino Tooling projects, which the "template" is intended to be used with. --- workflow-templates/check-python-task.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow-templates/check-python-task.md b/workflow-templates/check-python-task.md index 76a0e0d3..28e7f5f1 100644 --- a/workflow-templates/check-python-task.md +++ b/workflow-templates/check-python-task.md @@ -31,14 +31,14 @@ https://python-poetry.org/docs/#installation If your project does not already use Poetry, you can initialize the [`pyproject.toml`](https://python-poetry.org/docs/pyproject/) file using these commands: ``` -poetry init --python="^3.9" --dev-dependency="black@^23.12.1" --dev-dependency="flake8@^6.1.0" --dev-dependency="pep8-naming@^0.13.3" +poetry init --python="^3.9" --dev-dependency="black@^23.12.1" --dev-dependency="flake8@^7.0.0" --dev-dependency="pep8-naming@^0.13.3" poetry install ``` If already using Poetry, add the tool using this command: ``` -poetry add --dev "black@^23.12.1" "flake8@^6.1.0" "pep8-naming@^0.13.3" +poetry add --dev "black@^23.12.1" "flake8@^7.0.0" "pep8-naming@^0.13.3" ``` Commit the resulting `pyproject.toml` and `poetry.lock` files.