Skip to content

Commit 60350da

Browse files
committed
ci: use tach to enforce inter package module deps.
1 parent 6ed1cc3 commit 60350da

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ repos:
3232
StrEnum,
3333
horde_model_reference==0.9.0,
3434
]
35+
- repo: https://github.com/gauge-sh/tach-pre-commit
36+
rev: v0.27.0
37+
hooks:
38+
- id: tach

tach.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
interfaces = []
2+
exclude = [
3+
"**/*__pycache__",
4+
"**/*egg-info",
5+
"**/docs",
6+
"**/tests",
7+
"**/venv",
8+
]
9+
source_roots = [
10+
".",
11+
]
12+
13+
[[modules ]]
14+
path = "horde_sdk.ai_horde_api"
15+
depends_on = ["horde_sdk.generation_parameters", "horde_sdk.generic_api"]
16+
17+
[[modules ]]
18+
path = "horde_sdk.worker"
19+
depends_on = ["horde_sdk.ai_horde_api", "horde_sdk.generic_api", "horde_sdk.generation_parameters"]
20+
21+
[[modules ]]
22+
path = "horde_sdk.generation_parameters"
23+
depends_on = []
24+
25+
[[modules ]]
26+
path = "horde_sdk.generic_api"
27+
depends_on = []

0 commit comments

Comments
 (0)