From 8108ddd394e41ea7d4db48ef357f8b484bbd6278 Mon Sep 17 00:00:00 2001 From: Austin Gregg-Smith Date: Tue, 30 Dec 2025 14:19:12 +0000 Subject: [PATCH 1/3] add ty --- pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9fe4cc6..e536e21 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,7 @@ test = [ "ruff>=0.5.0,<=0.14.10", "coverage>=7.5.4,<=7.13.1", "pre-commit<=4.5.1", + "ty<=0.1.0", ] [build-system] @@ -67,7 +68,8 @@ format = "ruff format ." check-clean-workspace = "git diff --exit-code" ruff-lint = "ruff check . --fix" pylint = "pylint --version && echo 'running pylint...' && pylint $(git ls-files '*.py')" -lint = { depends-on = ["ruff-lint", "pylint"] } +ty = "ty check" +lint = { depends-on = ["ruff-lint", "pylint", "ty"] } style = { depends-on = ["format", "lint"] } commit-format = "git commit -a -m'autoformat code' || true" test = "pytest" @@ -83,6 +85,7 @@ ci = { depends-on = [ "format", "ruff-lint", "pylint", + "ty", "coverage", "coverage-report", ] } From 119afdc153c82f4f440a044ae06c1f51890100f9 Mon Sep 17 00:00:00 2001 From: Austin Gregg-Smith Date: Tue, 30 Dec 2025 14:19:17 +0000 Subject: [PATCH 2/3] update pixi.lock --- .vscode/extensions.json | 2 +- pixi.lock | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 8f8716e..c593651 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -7,4 +7,4 @@ "charliermarsh.ruff", "tamasfe.even-better-toml", ] -} \ No newline at end of file +} diff --git a/pixi.lock b/pixi.lock index ab35c5c..a38fc7b 100644 --- a/pixi.lock +++ b/pixi.lock @@ -58,6 +58,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/b3/19/9e050c0dca8aba824d67cc0db69fb459c28d8cd3f6855b1405b3f29cc91d/ruff-0.14.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/bd/75/8539d011f6be8e29f339c42e633aae3cb73bffa95dd0f9adec09b9c58e85/tomlkit-0.13.3-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/0e/8d/8667c7e0ac9f13c461ded487c8d7350f440cd39ba866d0160a8e1b1efd6c/ty-0.0.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/79/0c/c05523fa3181fdf0c9c52a6ba91a23fbf3246cc095f26f6516f9c60e6771/virtualenv-20.35.4-py3-none-any.whl - pypi: ./ py310: @@ -121,6 +122,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/77/b8/0135fadc89e73be292b473cb820b4f5a08197779206b33191e801feeae40/tomli-2.3.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/bd/75/8539d011f6be8e29f339c42e633aae3cb73bffa95dd0f9adec09b9c58e85/tomlkit-0.13.3-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/0e/8d/8667c7e0ac9f13c461ded487c8d7350f440cd39ba866d0160a8e1b1efd6c/ty-0.0.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/79/0c/c05523fa3181fdf0c9c52a6ba91a23fbf3246cc095f26f6516f9c60e6771/virtualenv-20.35.4-py3-none-any.whl - pypi: ./ @@ -183,6 +185,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/b3/19/9e050c0dca8aba824d67cc0db69fb459c28d8cd3f6855b1405b3f29cc91d/ruff-0.14.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/bd/75/8539d011f6be8e29f339c42e633aae3cb73bffa95dd0f9adec09b9c58e85/tomlkit-0.13.3-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/0e/8d/8667c7e0ac9f13c461ded487c8d7350f440cd39ba866d0160a8e1b1efd6c/ty-0.0.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/79/0c/c05523fa3181fdf0c9c52a6ba91a23fbf3246cc095f26f6516f9c60e6771/virtualenv-20.35.4-py3-none-any.whl - pypi: ./ py312: @@ -244,6 +247,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/b3/19/9e050c0dca8aba824d67cc0db69fb459c28d8cd3f6855b1405b3f29cc91d/ruff-0.14.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/bd/75/8539d011f6be8e29f339c42e633aae3cb73bffa95dd0f9adec09b9c58e85/tomlkit-0.13.3-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/0e/8d/8667c7e0ac9f13c461ded487c8d7350f440cd39ba866d0160a8e1b1efd6c/ty-0.0.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/79/0c/c05523fa3181fdf0c9c52a6ba91a23fbf3246cc095f26f6516f9c60e6771/virtualenv-20.35.4-py3-none-any.whl - pypi: ./ py313: @@ -304,6 +308,7 @@ environments: - pypi: https://files.pythonhosted.org/packages/b3/19/9e050c0dca8aba824d67cc0db69fb459c28d8cd3f6855b1405b3f29cc91d/ruff-0.14.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl - pypi: https://files.pythonhosted.org/packages/bd/75/8539d011f6be8e29f339c42e633aae3cb73bffa95dd0f9adec09b9c58e85/tomlkit-0.13.3-py3-none-any.whl + - pypi: https://files.pythonhosted.org/packages/0e/8d/8667c7e0ac9f13c461ded487c8d7350f440cd39ba866d0160a8e1b1efd6c/ty-0.0.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl - pypi: https://files.pythonhosted.org/packages/79/0c/c05523fa3181fdf0c9c52a6ba91a23fbf3246cc095f26f6516f9c60e6771/virtualenv-20.35.4-py3-none-any.whl - pypi: ./ packages: @@ -930,7 +935,7 @@ packages: - pypi: ./ name: python-template version: 0.2.0 - sha256: ba56e41f7ccfa3afc7573dc6212e58111a441744d950c8697d80fcd3a2335d60 + sha256: 2a0f79bb3c718f7ce7a68b558e06c346bb7fc9a7bafc212daae1f3419087779f requires_dist: - pylint>=3.2.5,<=4.0.4 ; extra == 'test' - pytest-cov>=4.1,<=7.0.0 ; extra == 'test' @@ -939,6 +944,7 @@ packages: - ruff>=0.5.0,<=0.14.10 ; extra == 'test' - coverage>=7.5.4,<=7.13.1 ; extra == 'test' - pre-commit<=4.5.1 ; extra == 'test' + - ty<=0.1.0 ; extra == 'test' - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.13-8_cp313.conda build_number: 8 sha256: 210bffe7b121e651419cb196a2a63687b087497595c9be9d20ebe97dd06060a7 @@ -1039,6 +1045,11 @@ packages: version: 0.13.3 sha256: c89c649d79ee40629a9fda55f8ace8c6a1b42deb912b2a8fd8d942ddadb606b0 requires_python: '>=3.8' +- pypi: https://files.pythonhosted.org/packages/0e/8d/8667c7e0ac9f13c461ded487c8d7350f440cd39ba866d0160a8e1b1efd6c/ty-0.0.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + name: ty + version: 0.0.8 + sha256: b558a647a073d0c25540aaa10f8947de826cb8757d034dd61ecf50ab8dbd77bf + requires_python: '>=3.8' - pypi: https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl name: typing-extensions version: 4.15.0 From f9509666a7430a891b9de5f2bc4e0dfc48f14a77 Mon Sep 17 00:00:00 2001 From: Austin Gregg-Smith Date: Tue, 30 Dec 2025 14:45:40 +0000 Subject: [PATCH 3/3] update pixi.lock --- pixi.lock | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pixi.lock b/pixi.lock index a38fc7b..ef0573c 100644 --- a/pixi.lock +++ b/pixi.lock @@ -935,7 +935,7 @@ packages: - pypi: ./ name: python-template version: 0.2.0 - sha256: 2a0f79bb3c718f7ce7a68b558e06c346bb7fc9a7bafc212daae1f3419087779f + sha256: 7b910e1f6b08300209e13dcfbabbe009bbb8d65d4297972ef6f08e9649a58dee requires_dist: - pylint>=3.2.5,<=4.0.4 ; extra == 'test' - pytest-cov>=4.1,<=7.0.0 ; extra == 'test' @@ -944,7 +944,7 @@ packages: - ruff>=0.5.0,<=0.14.10 ; extra == 'test' - coverage>=7.5.4,<=7.13.1 ; extra == 'test' - pre-commit<=4.5.1 ; extra == 'test' - - ty<=0.1.0 ; extra == 'test' + - ty>=0.0.8,<=0.0.8 ; extra == 'test' - conda: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.13-8_cp313.conda build_number: 8 sha256: 210bffe7b121e651419cb196a2a63687b087497595c9be9d20ebe97dd06060a7 diff --git a/pyproject.toml b/pyproject.toml index e536e21..dd6ec88 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,7 @@ test = [ "ruff>=0.5.0,<=0.14.10", "coverage>=7.5.4,<=7.13.1", "pre-commit<=4.5.1", - "ty<=0.1.0", + "ty>=0.0.8,<=0.0.8", ] [build-system]