From d9343c7a4d90888ddf31c19e2daf33da8430177f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2024 08:52:06 +0000 Subject: [PATCH 1/2] Bump the required group across 1 directory with 7 updates Bumps the required group with 7 updates in the / directory: | Package | From | To | | --- | --- | --- | | [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.43` | `9.5.47` | | [mkdocstrings[python]](https://github.com/mkdocstrings/mkdocstrings) | `0.26.2` | `0.27.0` | | [frequenz-repo-config[lib]](https://github.com/frequenz-floss/frequenz-repo-config-python) | `0.10.0` | `0.11.0` | | [uv](https://github.com/astral-sh/uv) | `0.4.29` | `0.5.5` | | [pylint](https://github.com/pylint-dev/pylint) | `3.3.1` | `3.3.2` | | [pytest](https://github.com/pytest-dev/pytest) | `8.3.3` | `8.3.4` | | [frequenz-repo-config[extra-lint-examples]](https://github.com/frequenz-floss/frequenz-repo-config-python) | `0.10.0` | `0.11.0` | Updates `mkdocs-material` from 9.5.43 to 9.5.47 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.43...9.5.47) Updates `mkdocstrings[python]` from 0.26.2 to 0.27.0 - [Release notes](https://github.com/mkdocstrings/mkdocstrings/releases) - [Changelog](https://github.com/mkdocstrings/mkdocstrings/blob/main/CHANGELOG.md) - [Commits](https://github.com/mkdocstrings/mkdocstrings/compare/0.26.2...0.27.0) Updates `frequenz-repo-config[lib]` from 0.10.0 to 0.11.0 - [Release notes](https://github.com/frequenz-floss/frequenz-repo-config-python/releases) - [Changelog](https://github.com/frequenz-floss/frequenz-repo-config-python/blob/v0.x.x/RELEASE_NOTES.md) - [Commits](https://github.com/frequenz-floss/frequenz-repo-config-python/compare/v0.10.0...v0.11.0) Updates `uv` from 0.4.29 to 0.5.5 - [Release notes](https://github.com/astral-sh/uv/releases) - [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/uv/compare/0.4.29...0.5.5) Updates `pylint` from 3.3.1 to 3.3.2 - [Release notes](https://github.com/pylint-dev/pylint/releases) - [Commits](https://github.com/pylint-dev/pylint/compare/v3.3.1...v3.3.2) Updates `pytest` from 8.3.3 to 8.3.4 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.3.3...8.3.4) Updates `frequenz-repo-config[extra-lint-examples]` from 0.10.0 to 0.11.0 - [Release notes](https://github.com/frequenz-floss/frequenz-repo-config-python/releases) - [Changelog](https://github.com/frequenz-floss/frequenz-repo-config-python/blob/v0.x.x/RELEASE_NOTES.md) - [Commits](https://github.com/frequenz-floss/frequenz-repo-config-python/compare/v0.10.0...v0.11.0) --- updated-dependencies: - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch dependency-group: required - dependency-name: mkdocstrings[python] dependency-type: direct:production update-type: version-update:semver-minor dependency-group: required - dependency-name: frequenz-repo-config[lib] dependency-type: direct:production update-type: version-update:semver-minor dependency-group: required - dependency-name: uv dependency-type: direct:production update-type: version-update:semver-minor dependency-group: required - dependency-name: pylint dependency-type: direct:production update-type: version-update:semver-patch dependency-group: required - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-patch dependency-group: required - dependency-name: frequenz-repo-config[extra-lint-examples] dependency-type: direct:production update-type: version-update:semver-minor dependency-group: required ... Signed-off-by: dependabot[bot] --- pyproject.toml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d4a07ed..0d05abc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ requires = [ "setuptools == 68.1.0", "setuptools_scm[toml] == 8.1.0", - "frequenz-repo-config[lib] == 0.10.0", + "frequenz-repo-config[lib] == 0.11.0", ] build-backend = "setuptools.build_meta" @@ -65,10 +65,10 @@ dev-mkdocs = [ "mkdocs-gen-files == 0.5.0", "mkdocs-literate-nav == 0.6.1", "mkdocs-macros-plugin == 1.3.7", - "mkdocs-material == 9.5.43", - "mkdocstrings[python] == 0.26.2", + "mkdocs-material == 9.5.47", + "mkdocstrings[python] == 0.27.0", "mkdocstrings-python == 1.12.2", - "frequenz-repo-config[lib] == 0.10.0", + "frequenz-repo-config[lib] == 0.11.0", ] dev-mypy = [ "mypy == 1.13.0", @@ -79,18 +79,18 @@ dev-mypy = [ "frequenz-dispatch[dev-mkdocs,dev-noxfile,dev-pytest]", ] dev-noxfile = [ - "uv == 0.4.29", + "uv == 0.5.5", "nox == 2024.10.9", - "frequenz-repo-config[lib] == 0.10.0", + "frequenz-repo-config[lib] == 0.11.0", ] dev-pylint = [ - "pylint == 3.3.1", + "pylint == 3.3.2", # For checking the noxfile, docs/ script, and tests "frequenz-dispatch[dev-mkdocs,dev-noxfile,dev-pytest]", ] dev-pytest = [ - "pytest == 8.3.3", - "frequenz-repo-config[extra-lint-examples] == 0.10.0", + "pytest == 8.3.4", + "frequenz-repo-config[extra-lint-examples] == 0.11.0", "pytest-mock == 3.14.0", "pytest-asyncio == 0.24.0", "async-solipsism == 0.7", From 317dde917a247bd1d5d449ed7dd32b47333a111c Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Tue, 3 Dec 2024 11:50:08 +0100 Subject: [PATCH 2/2] Apply new repo-config 0.11 templates Signed-off-by: Leandro Lucarella --- .github/containers/test-installation/Dockerfile | 2 +- .github/dependabot.yml | 8 ++++++++ .github/labeler.yml | 2 +- pyproject.toml | 2 ++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/containers/test-installation/Dockerfile b/.github/containers/test-installation/Dockerfile index 4be1515..fa3ed3a 100644 --- a/.github/containers/test-installation/Dockerfile +++ b/.github/containers/test-installation/Dockerfile @@ -3,7 +3,7 @@ # This Dockerfile is used to test the installation of the python package in # multiple platforms in the CI. It is not used to build the package itself. -FROM --platform=${TARGETPLATFORM} python:3.11-slim +FROM python:3.11-slim RUN apt-get update -y && \ apt-get install --no-install-recommends -y \ diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3077268..72e4cca 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -39,3 +39,11 @@ updates: labels: - "part:tooling" - "type:tech-debt" + groups: + compatible: + update-types: + - "minor" + - "patch" + artifacts: + patterns: + - "actions/*-artifact" diff --git a/.github/labeler.yml b/.github/labeler.yml index 1f8a9df..f855914 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -25,7 +25,7 @@ # - changed-files: # - any-glob-to-any-file: # - "src/**/*.py" -# - all-glob-to-all-file: +# - all-globs-to-all-files: # - "!src/__init__.py" # # Please have in mind that that the part:xxx labels need to diff --git a/pyproject.toml b/pyproject.toml index 0d05abc..be07b71 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -152,6 +152,8 @@ disable = [ "unsubscriptable-object", # Checked by mypy "no-member", + "possibly-used-before-assignment", + "no-name-in-module", # Checked by flake8 "f-string-without-interpolation", "line-too-long",