From ef1c72dc038ae23b3aadf3ef39106369309283b9 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Thu, 24 Oct 2024 11:52:51 -0400 Subject: [PATCH 1/2] ci: check-sdist Signed-off-by: Henry Schreiner --- .github/workflows/main.yml | 4 ++++ pyproject.toml | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4ceafb7..b32da6b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,6 +35,10 @@ jobs: - name: Run rename test run: scripts/rename + + - name: Verify SDist is complete + run: uvx check-dist + # https://github.com/marketplace/actions/alls-green#why used for branch protection checks check: if: always() diff --git a/pyproject.toml b/pyproject.toml index 29206de..4539654 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -113,3 +113,12 @@ exclude_lines = [ "if self\\.debug:", "except ImportError:", ] + +[tool.check-sdist] +git-only = [ + "docs", + "fuzz", + "scripts", + "mkdocs.yml", + "uv.lock" +] From 2b640694394948b79560613b4e48009989a0a062 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Thu, 24 Oct 2024 12:04:38 -0400 Subject: [PATCH 2/2] ci: move check-sdist to scripts/check Signed-off-by: Henry Schreiner --- .github/workflows/main.yml | 3 --- scripts/check | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b32da6b..c3d9d99 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,9 +36,6 @@ jobs: - name: Run rename test run: scripts/rename - - name: Verify SDist is complete - run: uvx check-dist - # https://github.com/marketplace/actions/alls-green#why used for branch protection checks check: if: always() diff --git a/scripts/check b/scripts/check index 141f2a9..13ce9ed 100755 --- a/scripts/check +++ b/scripts/check @@ -7,3 +7,4 @@ SOURCE_FILES="python_multipart multipart tests" uvx ruff format --check --diff $SOURCE_FILES uvx ruff check $SOURCE_FILES uvx --with types-PyYAML mypy $SOURCE_FILES +uvx check-sdist