Skip to content

Commit

Permalink
🔧 Exclude non-package files from hatch build
Browse files Browse the repository at this point in the history
  • Loading branch information
jemrobinson committed Jan 28, 2025
1 parent c04fab0 commit c560f92
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,16 @@ omit= [
"data_safe_haven/resources/*",
]

[tool.hatch.build.targets.sdist]
exclude = [
"docs/", # documentation source
"tests/", # package tests
"typings/", # mypy configuration
".*", # configuration dotfiles
"CODEOWNERS", # GitHub configuration
"*.md", # GitHub configuration
]

[tool.hatch.env]
requires = ["hatch-pip-compile"]

Expand Down

0 comments on commit c560f92

Please sign in to comment.