@@ -51,6 +51,7 @@ lower = [
5151 " typer-config==1.4.2" ,
5252 " typer==0.16.0"
5353]
54+ pkg = [" tomli>=2.2.1; python_version<'3.11'" ]
5455
5556[project ]
5657authors = [{"email" = " sorin.sbarnea@gmail.com" , "name" = " Sorin Sbarnea" }]
@@ -87,8 +88,8 @@ dependencies = [
8788 " subprocess-tee>=0.4.1" ,
8889 " tomli>=2.0.1 ; python_full_version < '3.11'" ,
8990 " twine>=3.4.1" ,
90- " typer-config>=1.4 .0" ,
91- " typer>=0.16.0 "
91+ " typer>=0.16 .0" ,
92+ " mk-pre "
9293]
9394dynamic = [" version" ]
9495license = " MIT"
@@ -104,7 +105,6 @@ git = "mk.tools.git:GitTool"
104105make = " mk.tools.make:MakeTool"
105106node = " mk.tools.node:NodeTool"
106107nox = " mk.tools.nox:NoxTool"
107- pre = " mk.tools.pre:PreTool"
108108pre-commit = " mk.tools.pre_commit:PreCommitTool"
109109pypackage = " mk.tools.py_package:PyPackageTool"
110110pytest = " mk.tools.pytest:PyTestTool"
@@ -179,13 +179,22 @@ profile = "black"
179179[tool .mypy ]
180180color_output = true
181181error_summary = true
182- exclude = [" .ansible" , " .cache" , " .tox" , " build" , " dist" ]
182+ exclude = [
183+ " .ansible" ,
184+ " .cache" ,
185+ " .tox" ,
186+ " .venv" ,
187+ " node_modules" ,
188+ " build" ,
189+ " dist" ,
190+ " site"
191+ ]
183192python_version = " 3.10"
184193strict = true
185194
186195[[tool .mypy .overrides ]]
187196ignore_missing_imports = true
188- module = [" diskcache" , " pytest_benchmark.fixture" ]
197+ module = [" git.* " , " diskcache" , " pytest_benchmark.fixture" ]
189198
190199[tool .ruff ]
191200# Same as Black.
@@ -222,7 +231,7 @@ ignore = [
222231select = [" ALL" ]
223232flake8-pytest-style.parametrize-values-type = " tuple"
224233isort.known-first-party = [" mk" ]
225- per-file-ignores."test/**/*.py" = [" S" ]
234+ per-file-ignores."**/ test/**/*.py" = [" S" ]
226235pydocstyle.convention = " google"
227236
228237[tool .setuptools_scm ]
@@ -252,9 +261,9 @@ env_list = ["py", "lint", "docs", "pkg", "lower", "devel", "integration"]
252261requires = [
253262 " pip>=24" ,
254263 " setuptools>=65.3" ,
255- " tox>=4.28.3 " ,
264+ " tox>=4.28.4 " ,
256265 " tox-extra>=2.1" ,
257- " tox-uv>=1.27 "
266+ " tox-uv>=1.28 "
258267]
259268skip_missing_interpreters = true
260269
@@ -333,14 +342,12 @@ commands = [
333342]
334343description = " Builds docs"
335344extras = [" docs" ]
336- package = " editable"
337345skip_install = false
338346
339347[tool .tox .env .integration ]
340348commands = [[" ansible" , " --version" ], [" nox" , " --version" ], [" mk" , " test-integration" ]]
341349dependency_groups = [" integration" ]
342350description = " Run integrations tests"
343- package = " editable"
344351
345352[tool .tox .env .lint ]
346353commands = [
@@ -360,15 +367,18 @@ runner = "uv-venv-runner"
360367skip_install = true
361368
362369[tool .tox .env .lower ]
370+ commands_post = [[" uv" , " pip" , " check" ]]
363371dependency_groups = [" dev" , " lower" ]
364372description = " Run the tests with lower constraints dependencies"
373+ editable = true
365374runner = " uv-venv-runner"
366375
367376[tool .tox .env .pkg ]
368377commands = [[" bash" , " ./tools/pkg.sh" ]]
369378commands_post = []
370379commands_pre = []
371380description = " Build package, verify metadata, install package and assert behavior when ansible is missing."
381+ group = " pkg"
372382skip_install = true
373383
374384[tool .tox .env_run_base ]
@@ -437,3 +447,11 @@ TERM = "dump"
437447# do not include 'lower' constraints in default groups
438448default-groups = [" dev" , " docs" ]
439449package = true
450+
451+ [tool .uv .sources ]
452+ mk-pre = {workspace = true }
453+
454+ [tool .uv .workspace ]
455+ members = [" packages/*" ]
456+
457+ # exclude = ["packages/seeds"]
0 commit comments