Skip to content

Commit a5bad07

Browse files
committed
Add migrate script changes for repo-config
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent a29dc99 commit a5bad07

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,14 @@ jobs:
110110
# The job name should match the name of the `nox` job.
111111
name: Test with nox
112112
needs: ["nox"]
113+
# We skip this job only if nox was also skipped
114+
if: always() && needs.nox.result != 'skipped'
113115
runs-on: ubuntu-20.04
116+
env:
117+
DEPS_RESULT: ${{ needs.nox.result }}
114118
steps:
115-
- name: Return true
116-
run: "true"
119+
- name: Check matrix job result
120+
run: test "$DEPS_RESULT" = "success"
117121

118122
nox-cross-arch:
119123
name: Cross-arch tests with nox
@@ -183,7 +187,7 @@ jobs:
183187
uses: actions/cache@v4
184188
with:
185189
path: /tmp/pip-cache
186-
key: nox-${{ matrix.nox-session }}-${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('**/pyproject.toml') }}
190+
key: nox-${{ matrix.nox-session }}-${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}
187191

188192
# This ensures that the docker container has access to the pip cache.
189193
# Changing the user in the docker-run step causes it to fail due to
@@ -224,10 +228,14 @@ jobs:
224228
# The job name should match the name of the `nox-cross-arch` job.
225229
name: Cross-arch tests with nox
226230
needs: ["nox-cross-arch"]
231+
# We skip this job only if nox-cross-arch was also skipped
232+
if: always() && needs.nox-cross-arch.result != 'skipped'
227233
runs-on: ubuntu-20.04
234+
env:
235+
DEPS_RESULT: ${{ needs.nox-cross-arch.result }}
228236
steps:
229-
- name: Return true
230-
run: "true"
237+
- name: Check matrix job result
238+
run: test "$DEPS_RESULT" = "success"
231239

232240
build:
233241
name: Build distribution packages

mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ plugins:
9393
- literate-nav:
9494
nav_file: SUMMARY.md
9595
- mike:
96-
alias_type: redirect
96+
alias_type: symlink
9797
canonical_version: latest
9898
- mkdocstrings:
9999
default_handler: python
@@ -110,6 +110,7 @@ plugins:
110110
show_root_members_full_path: true
111111
show_signature_annotations: true
112112
show_source: true
113+
show_symbol_type_toc: true
113114
signature_crossrefs: true
114115
import:
115116
# See https://mkdocstrings.github.io/python/usage/#import for details

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ dev-mkdocs = [
5454
"mkdocs-macros-plugin == 1.0.5",
5555
"mkdocs-material == 9.5.30",
5656
"mkdocstrings[python] == 0.25.2",
57+
"mkdocstrings-python == 1.9.2",
5758
"frequenz-repo-config[api] == 0.10.0",
5859
]
5960
dev-mypy = [
@@ -129,10 +130,14 @@ disable = [
129130
# pylint's unsubscriptable check is buggy and is not needed because
130131
# it is a type-check, for which we already have mypy.
131132
"unsubscriptable-object",
133+
# Checked by mypy
134+
"no-member",
132135
# Checked by flake8
136+
"f-string-without-interpolation",
133137
"redefined-outer-name",
134138
"unused-import",
135139
"line-too-long",
140+
"missing-function-docstring",
136141
"unused-variable",
137142
"unnecessary-lambda-assignment",
138143
]

0 commit comments

Comments
 (0)