Skip to content

Commit 480315d

Browse files
fixup! Add experimental type checks with ty
1 parent 27da3f8 commit 480315d

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
env:
99
REQUIRED_PACKAGES: make
1010
POETRY_SPEC: poetry >=2, <3
11-
TY_SPEC: ty ==0.0.16
1211

1312
jobs:
1413
format-code:
@@ -84,8 +83,6 @@ jobs:
8483
run: pip install "${POETRY_SPEC}"
8584
- name: Create virtual environment
8685
run: make install
87-
- name: Install ty
88-
run: poetry add "${TY_SPEC}"
8986
- name: Check code static typing
9087
run: poetry run ty check
9188
lint-poetry:

poetry.lock

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
1+
# This file is automatically @generated by Poetry 2.2.1 and should not be changed by hand.
22

33
[[package]]
44
name = "alabaster"
@@ -1423,6 +1423,33 @@ files = [
14231423
{file = "tomli-2.2.1.tar.gz", hash = "sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff"},
14241424
]
14251425

1426+
[[package]]
1427+
name = "ty"
1428+
version = "0.0.16"
1429+
description = "An extremely fast Python type checker, written in Rust."
1430+
optional = false
1431+
python-versions = ">=3.8"
1432+
groups = ["dev"]
1433+
files = [
1434+
{file = "ty-0.0.16-py3-none-linux_armv6l.whl", hash = "sha256:6d8833b86396ed742f2b34028f51c0e98dbf010b13ae4b79d1126749dc9dab15"},
1435+
{file = "ty-0.0.16-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:934c0055d3b7f1cf3c8eab78c6c127ef7f347ff00443cef69614bda6f1502377"},
1436+
{file = "ty-0.0.16-py3-none-macosx_11_0_arm64.whl", hash = "sha256:b55e8e8733b416d914003cd22e831e139f034681b05afed7e951cc1a5ea1b8d4"},
1437+
{file = "ty-0.0.16-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:feccae8f4abd6657de111353bd604f36e164844466346eb81ffee2c2b06ea0f0"},
1438+
{file = "ty-0.0.16-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:1cad5e29d8765b92db5fa284940ac57149561f3f89470b363b9aab8a6ce553b0"},
1439+
{file = "ty-0.0.16-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:86f28797c7dc06f081238270b533bf4fc8e93852f34df49fb660e0b58a5cda9a"},
1440+
{file = "ty-0.0.16-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:be971a3b42bcae44d0e5787f88156ed2102ad07558c05a5ae4bfd32a99118e66"},
1441+
{file = "ty-0.0.16-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3c9f982b7c4250eb91af66933f436b3a2363c24b6353e94992eab6551166c8b7"},
1442+
{file = "ty-0.0.16-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d122edf85ce7bdf6f85d19158c991d858fc835677bd31ca46319c4913043dc84"},
1443+
{file = "ty-0.0.16-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:497ebdddbb0e35c7758ded5aa4c6245e8696a69d531d5c9b0c1a28a075374241"},
1444+
{file = "ty-0.0.16-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:e1e0ac0837bde634b030243aeba8499383c0487e08f22e80f5abdacb5b0bd8ce"},
1445+
{file = "ty-0.0.16-py3-none-musllinux_1_2_i686.whl", hash = "sha256:1216c9bcca551d9f89f47a817ebc80e88ac37683d71504e5509a6445f24fd024"},
1446+
{file = "ty-0.0.16-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:221bbdd2c6ee558452c96916ab67fcc465b86967cf0482e19571d18f9c831828"},
1447+
{file = "ty-0.0.16-py3-none-win32.whl", hash = "sha256:d52c4eb786be878e7514cab637200af607216fcc5539a06d26573ea496b26512"},
1448+
{file = "ty-0.0.16-py3-none-win_amd64.whl", hash = "sha256:f572c216aa8ecf79e86589c6e6d4bebc01f1f3cb3be765c0febd942013e1e73a"},
1449+
{file = "ty-0.0.16-py3-none-win_arm64.whl", hash = "sha256:430eadeb1c0de0c31ef7bef9d002bdbb5f25a31e3aad546f1714d76cd8da0a87"},
1450+
{file = "ty-0.0.16.tar.gz", hash = "sha256:a999b0db6aed7d6294d036ebe43301105681e0c821a19989be7c145805d7351c"},
1451+
]
1452+
14261453
[[package]]
14271454
name = "typer"
14281455
version = "0.16.0"
@@ -1605,4 +1632,4 @@ files = [
16051632
[metadata]
16061633
lock-version = "2.1"
16071634
python-versions = ">=3.10, <4"
1608-
content-hash = "50d9098be4b28ec32e2a90380e814e870de37ea7947ca366e7c8a7eb864865ad"
1635+
content-hash = "ce23fe30c6f8d300c3247ce24057b7eee3c409ecd865e407d05dd7cadbce7a13"

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ isort = "^5.13.2"
5252
mypy = "^1.4"
5353
rstcheck = { version = "^6", extras = ["sphinx"] }
5454
sphinx = "^7"
55+
ty = "^0.0.16"
5556
types-protobuf = ">=5.26, <7"
5657
types-requests = "^2.16"
5758
typing-extensions = "^4.1"

0 commit comments

Comments
 (0)