-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
71 lines (63 loc) · 4.31 KB
/
Copy pathpyproject.toml
File metadata and controls
71 lines (63 loc) · 4.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[project]
name = "edp-module-assemblies"
version = "0.1.0"
requires-python = "==3.13.2"
dependencies = [
"pydantic>=2.9.2",
"pyyaml>=6.0.2",
"cadquery>=2.7.0",
"boto3>=1.35.0",
"pygltflib>=1.16.5",
]
[dependency-groups]
dev = [
"black[d]>=26.3.1",
"poethepoet>=0.32.0",
"pytest>=8.3.4",
"ruff>=0.8.4",
"pytest-cov>=6.0.0",
"pip>=25.1.1",
]
[tool.poe.tasks]
format = "black ."
lint = "ruff check"
checks = ["format", "lint"]
# author-time
sync-plates = { cmd = "python src/plate_loader.py", env = { PYTHONPATH = "." } }
build-envelopes = { cmd = "python src/envelopes/build_envelope.py", env = { PYTHONPATH = "." } }
build-compute = { cmd = "python src/assemblies/compute_container.py --variant commercial-ac", env = { PYTHONPATH = "." } }
build-compute-defense = { cmd = "python src/assemblies/compute_container.py --variant defense-ac", env = { PYTHONPATH = "." } }
build-grid = { cmd = "python src/assemblies/grid_container.py --variant commercial-ac", env = { PYTHONPATH = "." } }
build-grid-dc-ext = { cmd = "python src/assemblies/grid_container.py --variant commercial-dc-ext", env = { PYTHONPATH = "." } }
build-grid-no-bess = { cmd = "python src/assemblies/grid_container.py --variant no-bess", env = { PYTHONPATH = "." } }
build-grid-defense-ac = { cmd = "python src/assemblies/grid_container.py --variant defense-ac", env = { PYTHONPATH = "." } }
build-grid-defense-dc-ext = { cmd = "python src/assemblies/grid_container.py --variant defense-dc-ext", env = { PYTHONPATH = "." } }
build-grid-defense-no-bess = { cmd = "python src/assemblies/grid_container.py --variant defense-no-bess", env = { PYTHONPATH = "." } }
build-deployment-commercial-ac = { cmd = "python src/assemblies/deployment.py --profile commercial_ac", env = { PYTHONPATH = "." } }
build-deployment-commercial-dc-int = { cmd = "python src/assemblies/deployment.py --profile commercial_dc_int", env = { PYTHONPATH = "." } }
build-deployment-commercial-dc-ext = { cmd = "python src/assemblies/deployment.py --profile commercial_dc_ext", env = { PYTHONPATH = "." } }
build-deployment-no-bess = { cmd = "python src/assemblies/deployment.py --profile no_bess", env = { PYTHONPATH = "." } }
build-deployment-defense-ac = { cmd = "python src/assemblies/deployment.py --profile defense_ac", env = { PYTHONPATH = "." } }
build-deployment-defense-dc-ext = { cmd = "python src/assemblies/deployment.py --profile defense_dc_ext", env = { PYTHONPATH = "." } }
build-deployment-defense-no-bess = { cmd = "python src/assemblies/deployment.py --profile defense_no_bess", env = { PYTHONPATH = "." } }
bake-viewer = { cmd = "python scripts/bake_viewer.py", env = { PYTHONPATH = "." } }
build-all = ["sync-plates", "build-envelopes", "build-compute", "build-compute-defense", "build-grid", "build-grid-dc-ext", "build-grid-no-bess", "build-grid-defense-ac", "build-grid-defense-dc-ext", "build-grid-defense-no-bess", "build-deployment-commercial-ac", "build-deployment-commercial-dc-int", "build-deployment-commercial-dc-ext", "build-deployment-no-bess", "build-deployment-defense-ac", "build-deployment-defense-dc-ext", "build-deployment-defense-no-bess", "build-manifest"]
# CI
validate-specs = { cmd = "python scripts/validate_specs.py", env = { PYTHONPATH = "." } }
build-manifest = { cmd = "python scripts/build_manifest.py", env = { PYTHONPATH = "." } }
push-s3 = { cmd = "python scripts/push_to_s3.py", env = { PYTHONPATH = "." } }
ci = ["validate-specs", "build-manifest", "push-s3"]
# inspect
inspect-compute = "bash -c 'nohup freecad assemblies/compute-container/commercial-ac/assembly.step &>/dev/null &'"
inspect-compute-exploded = "bash -c 'nohup freecad assemblies/compute-container/commercial-ac/assembly-exploded.step &>/dev/null &'"
inspect-grid = "bash -c 'nohup freecad assemblies/grid-container/commercial-ac/assembly.step &>/dev/null &'"
inspect-grid-exploded = "bash -c 'nohup freecad assemblies/grid-container/commercial-ac/assembly-exploded.step &>/dev/null &'"
test = "pytest -vv"
cover = "pytest -vv --cov src/"
review = "claude 'run code-reviewer agent against diff for quality and elegance'"
commit = "bash -c 'uv run poe checks && uv run poe test && uv run poe review && git add -A && git cz && git push'"
[tool.pytest.ini_options]
# Reason: tests import `from src.X import Y` — repo root must be on sys.path.
pythonpath = ["."]
[tool.coverage.run]
omit = ["*/test_*.py"]