From 15d49fc6c591130c91639833cd111bff8e66c1c2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 3 Jun 2022 10:34:36 +0000 Subject: [PATCH 1/2] Bump pep8-naming from 0.12.1 to 0.13.0 Bumps [pep8-naming](https://github.com/PyCQA/pep8-naming) from 0.12.1 to 0.13.0. - [Release notes](https://github.com/PyCQA/pep8-naming/releases) - [Changelog](https://github.com/PyCQA/pep8-naming/blob/main/CHANGELOG.rst) - [Commits](https://github.com/PyCQA/pep8-naming/compare/0.12.1...0.13.0) --- updated-dependencies: - dependency-name: pep8-naming dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- poetry.lock | 24 ++++-------------------- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/poetry.lock b/poetry.lock index 2b96a15e..5af1f643 100644 --- a/poetry.lock +++ b/poetry.lock @@ -86,17 +86,6 @@ mccabe = ">=0.6.0,<0.7.0" pycodestyle = ">=2.8.0,<2.9.0" pyflakes = ">=2.4.0,<2.5.0" -[[package]] -name = "flake8-polyfill" -version = "1.0.2" -description = "Polyfill package for Flake8 plugins" -category = "dev" -optional = false -python-versions = "*" - -[package.dependencies] -flake8 = "*" - [[package]] name = "gitdb" version = "4.0.7" @@ -164,7 +153,7 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" [[package]] name = "pep8-naming" -version = "0.12.1" +version = "0.13.0" description = "Check PEP-8 naming conventions, plugin for flake8" category = "dev" optional = false @@ -172,7 +161,6 @@ python-versions = "*" [package.dependencies] flake8 = ">=3.9.1" -flake8-polyfill = ">=1.0.2,<2" [[package]] name = "platformdirs" @@ -297,7 +285,7 @@ pyyaml = "*" [metadata] lock-version = "1.1" python-versions = "^3.9" -content-hash = "06cd096992e9bd454384c140ad7e07aada6e6e2949726270ad27739f4f29f4c6" +content-hash = "6d740ba3ad5c7c37fcae08272e44b49717b9902eee9b525b6da9faeb58d0a638" [metadata.files] atomicwrites = [ @@ -349,10 +337,6 @@ flake8 = [ {file = "flake8-4.0.1-py2.py3-none-any.whl", hash = "sha256:479b1304f72536a55948cb40a32dce8bb0ffe3501e26eaf292c7e60eb5e0428d"}, {file = "flake8-4.0.1.tar.gz", hash = "sha256:806e034dda44114815e23c16ef92f95c91e4c71100ff52813adf7132a6ad870d"}, ] -flake8-polyfill = [ - {file = "flake8-polyfill-1.0.2.tar.gz", hash = "sha256:e44b087597f6da52ec6393a709e7108b2905317d0c0b744cdca6208e670d8eda"}, - {file = "flake8_polyfill-1.0.2-py2.py3-none-any.whl", hash = "sha256:12be6a34ee3ab795b19ca73505e7b55826d5f6ad7230d31b18e106400169b9e9"}, -] gitdb = [ {file = "gitdb-4.0.7-py3-none-any.whl", hash = "sha256:6c4cc71933456991da20917998acbe6cf4fb41eeaab7d6d67fbc05ecd4c865b0"}, {file = "gitdb-4.0.7.tar.gz", hash = "sha256:96bf5c08b157a666fec41129e6d327235284cca4c81e92109260f353ba138005"}, @@ -382,8 +366,8 @@ pathspec = [ {file = "pathspec-0.9.0.tar.gz", hash = "sha256:e564499435a2673d586f6b2130bb5b95f04a3ba06f81b8f895b651a3c76aabb1"}, ] pep8-naming = [ - {file = "pep8-naming-0.12.1.tar.gz", hash = "sha256:bb2455947757d162aa4cad55dba4ce029005cd1692f2899a21d51d8630ca7841"}, - {file = "pep8_naming-0.12.1-py2.py3-none-any.whl", hash = "sha256:4a8daeaeb33cfcde779309fc0c9c0a68a3bbe2ad8a8308b763c5068f86eb9f37"}, + {file = "pep8-naming-0.13.0.tar.gz", hash = "sha256:9f38e6dcf867a1fb7ad47f5ff72c0ddae544a6cf64eb9f7600b7b3c0bb5980b5"}, + {file = "pep8_naming-0.13.0-py3-none-any.whl", hash = "sha256:069ea20e97f073b3e6d4f789af2a57816f281ca64b86210c7d471117a4b6bfd0"}, ] platformdirs = [ {file = "platformdirs-2.2.0-py3-none-any.whl", hash = "sha256:4666d822218db6a262bdfdc9c39d21f23b4cfdb08af331a81e92751daf6c866c"}, diff --git a/pyproject.toml b/pyproject.toml index c022693a..fc64132c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ yamllint = "^v1.26.3" codespell = "^2.1.0" black = "^22.3" flake8 = "^4.0.1" -pep8-naming = "^0.12.1" +pep8-naming = "^0.13.0" pytest = "^7.1.2" GitPython = "^3.1.27" From 899b61bc2d71ea82a933ad810b73c152c2a8c224 Mon Sep 17 00:00:00 2001 From: per1234 Date: Tue, 14 Jun 2022 06:22:18 -0700 Subject: [PATCH 2/2] Update pep8-naming module version used by "Check Python" template This is now the standard version for use in Arduino tooling projects. --- 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 ca85b468..426259b9 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@^22.3" --dev-dependency="flake8@^4.0.1" --dev-dependency="pep8-naming@^0.12.1" +poetry init --python="^3.9" --dev-dependency="black@^22.3" --dev-dependency="flake8@^4.0.1" --dev-dependency="pep8-naming@^0.13.0" poetry install ``` If already using Poetry, add the tool using this command: ``` -poetry add --dev "black@^22.3" "flake8@^4.0.1" "pep8-naming@^0.12.1" +poetry add --dev "black@^22.3" "flake8@^4.0.1" "pep8-naming@^0.13.0" ``` Commit the resulting `pyproject.toml` and `poetry.lock` files.