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..6222b159 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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()