From 59872c56ba56b8fc5625cccf22bf0fe4457dbbd9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 1 Sep 2024 23:57:14 +0000 Subject: [PATCH 1/2] Bump the required group across 1 directory with 19 updates Updates the requirements on [watchfiles](https://github.com/samuelcolvin/watchfiles), [flake8](https://github.com/pycqa/flake8), [pydoclint](https://github.com/jsh9/pydoclint), [black](https://github.com/psf/black), [markdown](https://github.com/Python-Markdown/markdown), [frequenz-repo-config[lib]](https://github.com/frequenz-floss/frequenz-repo-config-python), [mike](https://github.com/jimporter/mike), [mkdocs-include-markdown-plugin](https://github.com/mondeja/mkdocs-include-markdown-plugin), [mkdocs-material](https://github.com/squidfunk/mkdocs-material), [mkdocstrings[python]](https://github.com/mkdocstrings/mkdocstrings), [mkdocstrings-python](https://github.com/mkdocstrings/python), [mypy](https://github.com/python/mypy), [types-markdown](https://github.com/python/typeshed), [pylint](https://github.com/pylint-dev/pylint), [async-solipsism](https://github.com/bmerry/async-solipsism), [frequenz-repo-config[extra-lint-examples]](https://github.com/frequenz-floss/frequenz-repo-config-python), [hypothesis](https://github.com/HypothesisWorks/hypothesis), [pytest](https://github.com/pytest-dev/pytest) and [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) to permit the latest version. Updates `watchfiles` to 0.24.0 - [Release notes](https://github.com/samuelcolvin/watchfiles/releases) - [Commits](https://github.com/samuelcolvin/watchfiles/compare/v0.15.0...v0.24.0) Updates `flake8` from 7.1.0 to 7.1.1 - [Commits](https://github.com/pycqa/flake8/compare/7.1.0...7.1.1) Updates `pydoclint` from 0.5.3 to 0.5.6 - [Release notes](https://github.com/jsh9/pydoclint/releases) - [Changelog](https://github.com/jsh9/pydoclint/blob/main/CHANGELOG.md) - [Commits](https://github.com/jsh9/pydoclint/compare/0.5.3...0.5.6) Updates `black` from 24.4.2 to 24.8.0 - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/24.4.2...24.8.0) Updates `markdown` from 3.6 to 3.7 - [Release notes](https://github.com/Python-Markdown/markdown/releases) - [Changelog](https://github.com/Python-Markdown/markdown/blob/master/docs/changelog.md) - [Commits](https://github.com/Python-Markdown/markdown/compare/3.6...3.7) Updates `frequenz-repo-config[lib]` from 0.9.2 to 0.10.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.10.0/RELEASE_NOTES.md) - [Commits](https://github.com/frequenz-floss/frequenz-repo-config-python/compare/v0.9.2...v0.10.0) Updates `mike` from 2.1.2 to 2.1.3 - [Release notes](https://github.com/jimporter/mike/releases) - [Changelog](https://github.com/jimporter/mike/blob/master/CHANGES.md) - [Commits](https://github.com/jimporter/mike/compare/v2.1.2...v2.1.3) Updates `mkdocs-include-markdown-plugin` from 6.2.1 to 6.2.2 - [Release notes](https://github.com/mondeja/mkdocs-include-markdown-plugin/releases) - [Commits](https://github.com/mondeja/mkdocs-include-markdown-plugin/compare/v6.2.1...v6.2.2) Updates `mkdocs-material` from 9.5.27 to 9.5.34 - [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.27...9.5.34) Updates `mkdocstrings[python]` from 0.25.1 to 0.26.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.25.1...0.26.0) Updates `mkdocstrings-python` from 1.10.5 to 1.10.9 - [Release notes](https://github.com/mkdocstrings/python/releases) - [Changelog](https://github.com/mkdocstrings/python/blob/main/CHANGELOG.md) - [Commits](https://github.com/mkdocstrings/python/compare/1.10.5...1.10.9) Updates `mypy` from 1.10.1 to 1.11.2 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.10.1...v1.11.2) Updates `types-markdown` from 3.6.0.20240316 to 3.7.0.20240822 - [Commits](https://github.com/python/typeshed/commits) Updates `pylint` from 3.2.5 to 3.2.7 - [Release notes](https://github.com/pylint-dev/pylint/releases) - [Commits](https://github.com/pylint-dev/pylint/compare/v3.2.5...v3.2.7) Updates `async-solipsism` from 0.6 to 0.7 - [Commits](https://github.com/bmerry/async-solipsism/commits) Updates `frequenz-repo-config[extra-lint-examples]` from 0.9.2 to 0.10.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.10.0/RELEASE_NOTES.md) - [Commits](https://github.com/frequenz-floss/frequenz-repo-config-python/compare/v0.9.2...v0.10.0) Updates `hypothesis` from 6.104.2 to 6.111.2 - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.104.2...hypothesis-python-6.111.2) Updates `pytest` from 8.2.2 to 8.3.2 - [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.2.2...8.3.2) Updates `pytest-asyncio` from 0.23.7 to 0.24.0 - [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases) - [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.23.7...v0.24.0) --- updated-dependencies: - dependency-name: watchfiles dependency-type: direct:production dependency-group: required - dependency-name: flake8 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: required - dependency-name: pydoclint dependency-type: direct:production update-type: version-update:semver-patch dependency-group: required - dependency-name: black dependency-type: direct:production update-type: version-update:semver-minor dependency-group: required - dependency-name: markdown 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: mike dependency-type: direct:production update-type: version-update:semver-patch dependency-group: required - dependency-name: mkdocs-include-markdown-plugin dependency-type: direct:production update-type: version-update:semver-patch dependency-group: required - 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: mkdocstrings-python dependency-type: direct:production update-type: version-update:semver-patch dependency-group: required - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor dependency-group: required - dependency-name: types-markdown 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: async-solipsism dependency-type: direct:production update-type: version-update:semver-minor dependency-group: required - dependency-name: frequenz-repo-config[extra-lint-examples] dependency-type: direct:production update-type: version-update:semver-minor dependency-group: required - dependency-name: hypothesis dependency-type: direct:production update-type: version-update:semver-minor dependency-group: required - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-minor dependency-group: required - dependency-name: pytest-asyncio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: required ... Signed-off-by: dependabot[bot] --- pyproject.toml | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index dac2c2ce..105ebed6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ requires = [ "setuptools == 68.1.0", "setuptools_scm[toml] == 7.1.0", - "frequenz-repo-config[lib] == 0.9.2", + "frequenz-repo-config[lib] == 0.10.0", ] build-backend = "setuptools.build_meta" @@ -27,7 +27,7 @@ classifiers = [ requires-python = ">= 3.11, < 4" dependencies = [ "typing-extensions >= 4.5.0, < 5", - "watchfiles >= 0.15.0, < 0.23.0", + "watchfiles >= 0.15.0, < 0.25.0", ] dynamic = ["version"] @@ -37,47 +37,47 @@ email = "floss@frequenz.com" [project.optional-dependencies] dev-flake8 = [ - "flake8 == 7.1.0", + "flake8 == 7.1.1", "flake8-docstrings == 1.7.0", "flake8-pyproject == 1.2.3", # For reading the flake8 config from pyproject.toml - "pydoclint == 0.5.3", + "pydoclint == 0.5.6", "pydocstyle == 6.3.0", ] -dev-formatting = ["black == 24.4.2", "isort == 5.13.2"] +dev-formatting = ["black == 24.8.0", "isort == 5.13.2"] dev-mkdocs = [ - "Markdown == 3.6", - "black == 24.4.2", - "frequenz-repo-config[lib] == 0.9.2", + "Markdown == 3.7", + "black == 24.8.0", + "frequenz-repo-config[lib] == 0.10.0", "markdown-callouts == 0.4.0", "markdown-svgbob == 202406.1023", - "mike == 2.1.2", + "mike == 2.1.3", "mkdocs-gen-files == 0.5.0", - "mkdocs-include-markdown-plugin == 6.2.1", + "mkdocs-include-markdown-plugin == 6.2.2", "mkdocs-literate-nav == 0.6.1", "mkdocs-macros-plugin == 1.0.5", - "mkdocs-material == 9.5.27", - "mkdocstrings[python] == 0.25.1", - "mkdocstrings-python == 1.10.5", + "mkdocs-material == 9.5.34", + "mkdocstrings[python] == 0.26.0", + "mkdocstrings-python == 1.10.9", "pymdownx-superfence-filter-lines == 0.1.0", ] dev-mypy = [ # For checking the noxfile, docs/ script, and tests "frequenz-channels[dev-mkdocs,dev-noxfile,dev-pytest]", - "mypy == 1.10.1", - "types-Markdown == 3.6.0.20240316", + "mypy == 1.11.2", + "types-Markdown == 3.7.0.20240822", ] -dev-noxfile = ["nox == 2024.4.15", "frequenz-repo-config[lib] == 0.9.2"] +dev-noxfile = ["nox == 2024.4.15", "frequenz-repo-config[lib] == 0.10.0"] dev-pylint = [ # For checking the noxfile, docs/ script, and tests "frequenz-channels[dev-mkdocs,dev-noxfile,dev-pytest]", - "pylint == 3.2.5", + "pylint == 3.2.7", ] dev-pytest = [ - "async-solipsism == 0.6", - "frequenz-repo-config[extra-lint-examples] == 0.9.2", - "hypothesis == 6.104.2", - "pytest == 8.2.2", - "pytest-asyncio == 0.23.7", + "async-solipsism == 0.7", + "frequenz-repo-config[extra-lint-examples] == 0.10.0", + "hypothesis == 6.111.2", + "pytest == 8.3.2", + "pytest-asyncio == 0.24.0", "pytest-mock == 3.14.0", ] dev = [ From 2716a39eb60caa59d7ea8d8495aa4b48e6331f3e Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Tue, 3 Sep 2024 08:12:21 +0200 Subject: [PATCH 2/2] Update files based on repo-config 0.10.0 Signed-off-by: Leandro Lucarella --- .github/workflows/ci.yaml | 28 ++++++++++++++++++++++------ mkdocs.yml | 3 +-- pyproject.toml | 4 ++++ 3 files changed, 27 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index eaaf0753..38b4f22f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -41,6 +41,9 @@ jobs: runs-on: ${{ matrix.os }} steps: + - name: Setup Git + uses: frequenz-floss/gh-action-setup-git@v0.x.x + - name: Print environment (debug) run: env @@ -119,6 +122,9 @@ jobs: runs-on: ${{ matrix.os }} steps: + - name: Setup Git + uses: frequenz-floss/gh-action-setup-git@v0.x.x + - name: Fetch sources uses: actions/checkout@v4 with: @@ -219,6 +225,9 @@ jobs: name: Build distribution packages runs-on: ubuntu-20.04 steps: + - name: Setup Git + uses: frequenz-floss/gh-action-setup-git@v0.x.x + - name: Fetch sources uses: actions/checkout@v4 with: @@ -251,17 +260,24 @@ jobs: needs: ["build"] runs-on: ubuntu-20.04 steps: + - name: Setup Git + uses: frequenz-floss/gh-action-setup-git@v0.x.x + - name: Fetch sources uses: actions/checkout@v4 + - name: Download package uses: actions/download-artifact@v4 with: name: dist-packages path: dist + - name: Set up QEMU uses: docker/setup-qemu-action@v3 + - name: Set up docker-buildx uses: docker/setup-buildx-action@v3 + - name: Test Installation uses: docker/build-push-action@v6 with: @@ -276,14 +292,14 @@ jobs: if: github.event_name != 'push' runs-on: ubuntu-20.04 steps: + - name: Setup Git + uses: frequenz-floss/gh-action-setup-git@v0.x.x + - name: Fetch sources uses: actions/checkout@v4 with: submodules: true - - name: Setup Git user and e-mail - uses: frequenz-floss/setup-git-user@v2 - - name: Set up Python uses: actions/setup-python@v5 with: @@ -318,14 +334,14 @@ jobs: permissions: contents: write steps: + - name: Setup Git + uses: frequenz-floss/gh-action-setup-git@v0.x.x + - name: Fetch sources uses: actions/checkout@v4 with: submodules: true - - name: Setup Git user and e-mail - uses: frequenz-floss/setup-git-user@v2 - - name: Set up Python uses: actions/setup-python@v5 with: diff --git a/mkdocs.yml b/mkdocs.yml index ceb67e33..c7d71307 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -102,7 +102,7 @@ plugins: - literate-nav: nav_file: SUMMARY.md - mike: - alias_type: redirect + alias_type: symlink canonical_version: latest - mkdocstrings: default_handler: python @@ -120,7 +120,6 @@ plugins: show_signature_annotations: true show_source: true show_symbol_type_toc: true - show_symbol_type_toc: true signature_crossrefs: true import: # See https://mkdocstrings.github.io/python/usage/#import for details diff --git a/pyproject.toml b/pyproject.toml index 105ebed6..12072ce0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -133,10 +133,14 @@ disable = [ # pylint's unsubscriptable check is buggy and is not needed because # it is a type-check, for which we already have mypy. "unsubscriptable-object", + # Checked by mypy + "no-member", # Checked by flake8 + "f-string-without-interpolation", "redefined-outer-name", "unused-import", "line-too-long", + "missing-function-docstring", "unused-variable", "unnecessary-lambda-assignment", ]