Skip to content

Commit f994862

Browse files
committed
feat: condense lint/format commands in bitbucket pipelines and ensure full typecheck matrix gets run
1 parent 43440cd commit f994862

File tree

1 file changed

+65
-6
lines changed

1 file changed

+65
-6
lines changed

{{cookiecutter.project_name}}/{% if cookiecutter.repository_provider == 'bitbucket' %}bitbucket-pipelines.yml{% endif %}

Lines changed: 65 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,7 @@ pipelines:
222222
- export UV_CACHE_DIR=.uv-cache
223223
- export UV_LINK_MODE=copy
224224
- uv --version
225-
- uvx nox -s format-python
226-
- uvx nox -s lint-python
227-
- uvx nox -s typecheck
225+
- uvx nox -t quality
228226
- uv cache prune --ci
229227

230228
{% if cookiecutter.add_rust_extension == 'y' -%}
@@ -250,6 +248,69 @@ pipelines:
250248
- uvx nox -s security-python
251249
- uv cache prune --ci
252250

251+
# Parallel typecheck execution across Python versions
252+
- parallel:
253+
steps:
254+
- step:
255+
name: Typecheck Python 3.9
256+
image: ghcr.io/astral-sh/uv:latest-python3.9-bookworm-slim
257+
caches:
258+
- uv
259+
- pip
260+
script:
261+
- export UV_CACHE_DIR=.uv-cache
262+
- export UV_LINK_MODE=copy
263+
- uvx nox -s typecheck-3.9
264+
- uv cache prune --ci
265+
266+
- step:
267+
name: Typecheck Python 3.10
268+
image: ghcr.io/astral-sh/uv:latest-python3.10-bookworm-slim
269+
caches:
270+
- uv
271+
- pip
272+
script:
273+
- export UV_CACHE_DIR=.uv-cache
274+
- export UV_LINK_MODE=copy
275+
- uvx nox -s typecheck-3.10
276+
- uv cache prune --ci
277+
278+
- step:
279+
name: Typecheck Python 3.11
280+
image: ghcr.io/astral-sh/uv:latest-python3.11-bookworm-slim
281+
caches:
282+
- uv
283+
- pip
284+
script:
285+
- export UV_CACHE_DIR=.uv-cache
286+
- export UV_LINK_MODE=copy
287+
- uvx nox -s typecheck-3.11
288+
- uv cache prune --ci
289+
290+
- step:
291+
name: Typecheck Python 3.12
292+
image: ghcr.io/astral-sh/uv:latest-python3.12-bookworm-slim
293+
caches:
294+
- uv
295+
- pip
296+
script:
297+
- export UV_CACHE_DIR=.uv-cache
298+
- export UV_LINK_MODE=copy
299+
- uvx nox -s typecheck-3.12
300+
- uv cache prune --ci
301+
302+
- step:
303+
name: Typecheck Python 3.13
304+
image: ghcr.io/astral-sh/uv:latest-python3.13-bookworm-slim
305+
caches:
306+
- uv
307+
- pip
308+
script:
309+
- export UV_CACHE_DIR=.uv-cache
310+
- export UV_LINK_MODE=copy
311+
- uvx nox -s typecheck-3.13
312+
- uv cache prune --ci
313+
253314
# Parallel test execution
254315
- parallel:
255316
steps:
@@ -363,9 +424,7 @@ pipelines:
363424
- export UV_CACHE_DIR=.uv-cache
364425
- export UV_LINK_MODE=copy
365426
- uv --version
366-
- uvx nox -s format-python
367-
- uvx nox -s lint-python
368-
- uvx nox -s typecheck
427+
- uvx nox -t quality
369428
- uv cache prune --ci
370429

371430
{% if cookiecutter.add_rust_extension == 'y' -%}

0 commit comments

Comments
 (0)