diff --git a/.github/containers/test-installation/Dockerfile b/.github/containers/test-installation/Dockerfile index 4637ed6f..478e6acb 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 8978cb3c..23cd21b1 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/pyproject.toml b/pyproject.toml index 53635a9a..ff0da73b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ requires = [ "setuptools == 75.6.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" @@ -69,9 +69,9 @@ 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", - "frequenz-repo-config[lib] == 0.10.0", + "mkdocs-material == 9.5.47", + "mkdocstrings[python] == 0.27.0", + "frequenz-repo-config[lib] == 0.11.0", ] dev-mypy = [ "mypy == 1.13.0", @@ -82,21 +82,21 @@ dev-mypy = [ "types-protobuf == 5.28.3.20241030", "types-python-dateutil == 2.9.0.20241003", ] -dev-noxfile = ["nox == 2024.10.9", "frequenz-repo-config[lib] == 0.10.0"] +dev-noxfile = ["nox == 2024.10.9", "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-client-dispatch[cli,dev-mkdocs,dev-noxfile,dev-pytest]", "frequenz-api-dispatch == 1.0.0-rc1", ] 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", - "time-machine == 2.15.0", - "hypothesis == 6.116.0", + "time-machine == 2.16.0", + "hypothesis == 6.122.1", "frequenz-client-dispatch[cli]", ] dev = [ @@ -155,6 +155,8 @@ disable = [ "unsubscriptable-object", # Checked by mypy "no-member", + "possibly-used-before-assignment", + "no-name-in-module", # Checked by flake8 "redefined-outer-name", "unused-import", @@ -168,6 +170,7 @@ disable = [ [tool.pytest.ini_options] testpaths = ["tests", "src"] asyncio_mode = "auto" +asyncio_default_fixture_loop_scope = "function" required_plugins = ["pytest-asyncio", "pytest-mock"] [tool.mypy] diff --git a/src/frequenz/client/conftest.py b/src/frequenz/client/conftest.py index fcea02a4..c84af78f 100644 --- a/src/frequenz/client/conftest.py +++ b/src/frequenz/client/conftest.py @@ -10,9 +10,4 @@ from frequenz.repo.config.pytest import examples from sybil import Sybil -sybil_arguments = examples.get_sybil_arguments() -# Upstream includes "excludes" to work around a bug in Sybil. -# This bug seems to be fixed in our version of Sybil, so we remove it. -sybil_arguments.pop("excludes") - -pytest_collect_file = Sybil(**sybil_arguments).pytest() +pytest_collect_file = Sybil(**examples.get_sybil_arguments()).pytest()