Skip to content

Commit

Permalink
feat(pyproject): add check-dist to ensure we ship all the needed files
Browse files Browse the repository at this point in the history
  • Loading branch information
Psycojoker committed Sep 17, 2024
1 parent ecc83fb commit 223f7e6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,17 @@ include = [
"code-of-conduct.md",
]

[tool.check-sdist]
git-only = [
"tests",
"docs",
"deployment",
".coveragerc",
".dockerignore",
"shell.nix"
]
default-ignore = true

[tool.isort]
profile = "black"

Expand Down Expand Up @@ -161,6 +172,7 @@ dependencies = [
"mypy-extensions==1.0.0",
"ruff==0.4.8",
"isort==5.13.2",
"check-sdist==0.1.3",
"sqlalchemy[mypy]==1.4.41",
"types-aiofiles",
"types-protobuf",
Expand All @@ -176,6 +188,7 @@ style = [
"black --check --diff {args:} ./src/ ./tests/",
"isort --check-only --profile black {args:} ./src/ ./tests/",
]
sdist = "check-sdist --inject-junk"
fmt = [
"black {args:} ./src/ ./tests/",
"ruff check --fix {args:.} ./src/ ./tests/",
Expand All @@ -185,6 +198,7 @@ fmt = [
all = [
"style",
"typing",
"sdist",
]

[tool.mypy]
Expand Down

0 comments on commit 223f7e6

Please sign in to comment.