Skip to content

Commit 47674ba

Browse files
authored
chore: add check-sdist to checks (#681)
--------- Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
1 parent 56223f6 commit 47674ba

4 files changed

Lines changed: 8 additions & 58 deletions

File tree

.github/workflows/test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ jobs:
3838
cache-dependency-path: pyproject.toml
3939
- name: Install the project and its test dependencies
4040
run: pip install --group test coverage[toml] .
41-
- name: Include SDist check dependencies
42-
if: matrix.python-version == '3.13'
43-
run: pip install build flit
4441
- name: Test with pytest
4542
run: coverage run -m pytest -v
4643
env:

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,13 @@ repos:
3434
- id: rst-directive-colons
3535
- id: rst-inline-touching-normal
3636

37+
- repo: https://github.com/henryiii/check-sdist
38+
rev: v1.4.0
39+
hooks:
40+
- id: check-sdist
41+
args: [--inject-junk]
42+
additional_dependencies:
43+
- flit-core
44+
3745
ci:
3846
autoupdate_schedule: quarterly

pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,3 @@ depends = []
135135
deps = ["pre-commit"]
136136
package = "skip"
137137
commands = [["pre-commit", "run", "-a"]]
138-
139-
[tool.tox.env.pkg]
140-
deps = ["build", "flit >= 3.8"]
141-
commands = [["pytest", "tests/test_sdist.py", { replace = "posargs", extend = true }]]

tests/test_sdist.py

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)