Skip to content

Commit 0d8eae0

Browse files
Psycojokerhoh
authored andcommitted
feat(pyproject): add check-dist to ensure we ship all the needed files
1 parent 5863651 commit 0d8eae0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,17 @@ include = [
121121
"code-of-conduct.md",
122122
]
123123

124+
[tool.check-sdist]
125+
git-only = [
126+
"tests",
127+
"docs",
128+
"deployment",
129+
".coveragerc",
130+
".dockerignore",
131+
"shell.nix"
132+
]
133+
default-ignore = true
134+
124135
[tool.isort]
125136
profile = "black"
126137

@@ -161,6 +172,7 @@ dependencies = [
161172
"mypy-extensions==1.0.0",
162173
"ruff==0.4.8",
163174
"isort==5.13.2",
175+
"check-sdist==0.1.3",
164176
"sqlalchemy[mypy]==1.4.41",
165177
"types-aiofiles",
166178
"types-protobuf",
@@ -176,6 +188,7 @@ style = [
176188
"black --check --diff {args:} ./src/ ./tests/",
177189
"isort --check-only --profile black {args:} ./src/ ./tests/",
178190
]
191+
sdist = "check-sdist --inject-junk"
179192
fmt = [
180193
"black {args:} ./src/ ./tests/",
181194
"ruff check --fix {args:.} ./src/ ./tests/",
@@ -185,6 +198,7 @@ fmt = [
185198
all = [
186199
"style",
187200
"typing",
201+
"sdist",
188202
]
189203

190204
[tool.mypy]

0 commit comments

Comments
 (0)