diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0e0f4d325..aaecb7a94 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -42,6 +42,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 @@ -121,6 +124,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 @@ -221,6 +227,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: @@ -261,17 +270,24 @@ jobs: - "3.12" 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 + - 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: @@ -305,14 +321,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: @@ -347,14 +363,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/.github/workflows/release-notes-check.yml b/.github/workflows/release-notes-check.yml index 0b758cd31..55e6c09a2 100644 --- a/.github/workflows/release-notes-check.yml +++ b/.github/workflows/release-notes-check.yml @@ -17,6 +17,8 @@ jobs: check-release-notes: name: Check release notes are updated runs-on: ubuntu-latest + permissions: + pull-requests: read steps: - name: Check for a release notes update if: github.event_name == 'pull_request' diff --git a/mkdocs.yml b/mkdocs.yml index ebca7f6e0..ac1358df1 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -93,7 +93,7 @@ plugins: - literate-nav: nav_file: SUMMARY.md - mike: - alias_type: redirect + alias_type: symlink canonical_version: latest - mkdocstrings: default_handler: python @@ -110,6 +110,7 @@ plugins: show_root_members_full_path: true show_signature_annotations: true show_source: 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 c9d46e92f..04a18c08b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ requires = [ "setuptools == 69.0.3", "setuptools_scm[toml] == 8.0.4", - "frequenz-repo-config[lib] == 0.9.2", + "frequenz-repo-config[lib] == 0.10.0", ] build-backend = "setuptools.build_meta" @@ -61,7 +61,8 @@ dev-mkdocs = [ "mkdocs-macros-plugin == 1.0.5", "mkdocs-material == 9.5.27", "mkdocstrings[python] == 0.25.1", - "frequenz-repo-config[lib] == 0.9.2", + "mkdocstrings-python == 1.10.8", + "frequenz-repo-config[lib] == 0.10.0", ] dev-mypy = [ "mypy == 1.10.1", @@ -71,7 +72,7 @@ dev-mypy = [ # For checking the noxfile, docs/ script, and tests "frequenz-sdk[dev-mkdocs,dev-noxfile,dev-pytest]", ] -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 = [ "pylint == 3.2.5", # For checking the noxfile, docs/ script, and tests @@ -79,7 +80,7 @@ dev-pylint = [ ] dev-pytest = [ "pytest == 8.2.2", - "frequenz-repo-config[extra-lint-examples] == 0.9.2", + "frequenz-repo-config[extra-lint-examples] == 0.10.0", "pytest-mock == 3.14.0", "pytest-asyncio == 0.23.7", "time-machine == 2.12.0", @@ -141,10 +142,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", "redefined-outer-name", "unnecessary-lambda-assignment", "unused-import",