From 73fb55d1f8fec576759fcc3c11cc0807d246af00 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Sun, 27 Oct 2024 03:50:04 -0400 Subject: [PATCH] ci: check-sdist (#172) --- .github/workflows/main.yml | 1 + pyproject.toml | 9 +++++++++ scripts/check | 1 + 3 files changed, 11 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4ceafb7..c3d9d99 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,6 +35,7 @@ jobs: - name: Run rename test run: scripts/rename + # 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 ea348fc..12e4922 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" +] 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