Skip to content

Commit ae9a32c

Browse files
committed
📦 Convert project to src-layout
This is one of the most resilient Python project structures that offers isolation and prevents accidental local imports during testing [[1]]. [1]: https://blog.ganssle.io/articles/2019/08/test-as-installed.html
1 parent cd89616 commit ae9a32c

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

hatch.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
[build.targets.sdist]
22
include = [
3-
'hooks/*.py',
4-
]
5-
exclude = [
6-
'hooks/*.sh',
3+
'src/',
74
]
85

96
[build.targets.wheel]
107
packages = [
11-
'hooks/',
8+
'src/pre_commit_terraform/',
129
]
1310

1411
[metadata.hooks.vcs.urls]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ file = 'README.md'
3333
content-type = 'text/markdown'
3434

3535
[project.scripts]
36-
terraform_docs_replace = 'hooks.terraform_docs_replace:main'
36+
terraform_docs_replace = 'pre_commit_terraform.terraform_docs_replace:main'
File renamed without changes.

0 commit comments

Comments
 (0)