From 57eca07a156b076ec98465d7092cd946907ecd39 Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Sun, 27 Sep 2026 22:44:50 +0300 Subject: [PATCH] ci: fetch the ADR check into the repo and run it without the repo's conftests or addopts --- justfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/justfile b/justfile index ddd0690..877e6b6 100644 --- a/justfile +++ b/justfile @@ -22,9 +22,10 @@ adr_check_source := "https://raw.githubusercontent.com/modern-python/.github/mai adr-check: #!/usr/bin/env sh set -eu - file="$(mktemp -d)/test_adr_citations.py" - curl -fsSL "{{ adr_check_source }}" -o "$file" - uv run --no-sync pytest --rootdir=. "$file" + dir="$(mktemp -d .adr-check.XXXXXX)" + trap 'rm -rf "$dir"' EXIT + curl -fsSL "{{ adr_check_source }}" -o "$dir/test_adr_citations.py" + uv run --no-sync pytest --rootdir=. --noconftest -o addopts= "$dir/test_adr_citations.py" test *args: uv run --no-sync pytest {{ args }}