Skip to content

Commit 579da4e

Browse files
committed
chore: add support for ty and pyrefly
1 parent 4e09811 commit 579da4e

File tree

7 files changed

+192
-9
lines changed

7 files changed

+192
-9
lines changed

.github/workflows/checks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ jobs:
5959
run: poetry install
6060
- name: Check typing
6161
run: poetry run mypy --install-types --non-interactive --strict --no-warn-unused-ignores $(echo "${{ matrix.lib }}" | tr "-" "_")
62+
- name: Check typing with ty
63+
run: poetry run ty check
64+
- name: Check typing with pyrefly
65+
run: poetry run pyrefly check
6266

6367
linting:
6468
runs-on: ubuntu-latest

scaleway-async/poetry.lock

Lines changed: 50 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scaleway-async/pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,21 @@ scaleway-core = "*"
3030
scaleway-core = { path = "../scaleway-core", develop = true }
3131
ruff = ">=0.5.0,<0.12.5"
3232
mypy = "^1.5.1"
33+
ty = "^0.0.1a15"
34+
pyrefly = "^0.24.2"
3335

3436
[build-system]
3537
requires = ["poetry-core"]
3638
build-backend = "poetry.core.masonry.api"
3739

3840
[tool.ruff.lint]
3941
ignore = ["E501"]
42+
43+
[tool.ty.rules]
44+
missing-argument = "ignore"
45+
invalid-argument-type = "ignore"
46+
47+
[tool.pyrefly.errors]
48+
import-error = false
49+
missing-argument = false
50+
bad-argument-type = false

scaleway-core/poetry.lock

Lines changed: 50 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scaleway-core/pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,18 @@ python-dateutil = "^2.8.2"
3232
types-python-dateutil = "^2.8.19"
3333
ruff = ">=0.5.0,<0.12.5"
3434
mypy = "^1.5.1"
35+
ty = "^0.0.1a15"
36+
pyrefly = "^0.24.2"
3537

3638
[build-system]
3739
requires = ["poetry-core"]
3840
build-backend = "poetry.core.masonry.api"
3941

4042
[tool.ruff.lint]
4143
ignore = ["E501"]
44+
45+
[tool.pyrefly.errors]
46+
import-error = false
47+
not-callable = false
48+
bad-return = false
49+
bad-assignment = false

scaleway/poetry.lock

Lines changed: 50 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scaleway/pyproject.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,34 @@ classifiers = [
2525
[tool.poetry.dependencies]
2626
python = ">=3.10"
2727
scaleway-core = "*"
28+
pyrefly = "^0.24.2"
2829

2930
[tool.poetry.group.dev.dependencies]
3031
scaleway-core = { path = "../scaleway-core", develop = true }
3132
ruff = ">=0.5.0,<0.12.5"
3233
mypy = "^1.5.1"
34+
ty = "^0.0.1a15"
35+
pyrefly = "^0.24.2"
3336

3437
[build-system]
3538
requires = ["poetry-core"]
3639
build-backend = "poetry.core.masonry.api"
3740

3841
[tool.ruff.lint]
3942
ignore = ["E501"]
43+
44+
[tool.pyrefly.errors]
45+
missing-attribute = false
46+
no-access = false
47+
no-matching-overload = false
48+
import-error = false
49+
bad-assignment = false
50+
bad-return = false
51+
missing-argument = false
52+
bad-argument-type = false
53+
54+
[tool.ty.rules]
55+
invalid-assignment = "ignore"
56+
invalid-argument-type = "ignore"
57+
missing-argument = "ignore"
58+
unresolved-reference = "ignore"

0 commit comments

Comments
 (0)