Skip to content

Commit 57b266b

Browse files
feat(patch): add monorepo patch file
Signed-off-by: Cameron Smith <cameron.ray.smith@gmail.com>
1 parent 187f26a commit 57b266b

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

scripts/monorepo_pyproject.patch

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
diff --git a/pyproject.toml b/pyproject.toml
2+
index cea04d3..5f0b041 100644
3+
--- a/pyproject.toml
4+
+++ b/pyproject.toml
5+
@@ -16,11 +16,11 @@ python-nix-template = "python_nix_template:main"
6+
build-backend = "hatchling.build"
7+
requires = ["hatchling"]
8+
9+
-# [tool.uv.sources]
10+
-# pnt-functional = { workspace = true }
11+
+[tool.uv.sources]
12+
+pnt-functional = { workspace = true }
13+
14+
-# [tool.uv.workspace]
15+
-# members = ["packages/*"]
16+
+[tool.uv.workspace]
17+
+members = ["packages/*"]
18+
19+
[tool.hatch.build.targets.wheel]
20+
packages = ["src/python_nix_template"]
21+
@@ -88,19 +88,19 @@ hatchling = "*"
22+
23+
[tool.pytest.ini_options]
24+
# Add source locations to pytest-cov e.g.:
25+
-# --cov=packages/pnt-functional/src/pnt_functional/
26+
addopts = """
27+
-rA
28+
--xdoctest
29+
--disable-warnings
30+
--cov=src/python_nix_template/
31+
+--cov=packages/pnt-functional/src/pnt_functional/
32+
--cov-report=term-missing
33+
--durations=0
34+
"""
35+
log_level = "INFO"
36+
testpaths = [
37+
# Add test locations e.g.:
38+
- # "packages/pnt-functional/src/pnt_functional/tests",
39+
+ "packages/pnt-functional/src/pnt_functional/tests",
40+
"src/python_nix_template/tests",
41+
]
42+

0 commit comments

Comments
 (0)