From 456148accbab2c900aace31e8b631f0125fc9925 Mon Sep 17 00:00:00 2001 From: Flora Date: Tue, 3 Dec 2024 08:06:51 +0200 Subject: [PATCH] Update repo config Signed-off-by: Flora --- .github/containers/test-installation/Dockerfile | 2 +- .github/labeler.yml | 2 +- pyproject.toml | 11 +++++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/containers/test-installation/Dockerfile b/.github/containers/test-installation/Dockerfile index 40c3ee0..7d5ea85 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/labeler.yml b/.github/labeler.yml index bb2d3bb..ee4ebe5 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 34ac333..e933861 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" @@ -55,7 +55,7 @@ dev-mkdocs = [ "mkdocs-material == 9.5.43", "mkdocstrings[python] == 0.26.2", "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", @@ -65,7 +65,7 @@ dev-mypy = [ ] dev-noxfile = [ "nox == 2024.10.9", - "frequenz-repo-config[lib] == 0.10.0", + "frequenz-repo-config[lib] == 0.11.0", ] dev-pylint = [ # dev-pytest already defines a dependency to pylint because of the examples @@ -75,7 +75,7 @@ dev-pylint = [ dev-pytest = [ "pytest == 8.3.3", "pylint == 3.3.1", # We need this to check for the examples - "frequenz-repo-config[extra-lint-examples] == 0.10.0", + "frequenz-repo-config[extra-lint-examples] == 0.11.0", "pytest-mock == 3.14.0", "pytest-asyncio == 0.24.0", "async-solipsism == 0.7", @@ -137,6 +137,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", @@ -150,6 +152,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]