Skip to content

Commit ba879be

Browse files
committed
Migrate to ty from mypy
1 parent 1f97eea commit ba879be

File tree

3 files changed

+33
-68
lines changed

3 files changed

+33
-68
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test:
2525
uv run pytest -x --cov
2626

2727
type_check:
28-
uv run mypy tests --ignore-missing-import
28+
uv run ty check tests
2929

3030
################################################################################
3131

pyproject.toml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ dependencies = [
2222
[dependency-groups]
2323
dev = [
2424
"coverage>=7.9.1",
25-
"mypy>=1.16.1",
2625
"pytest>=8.4.1",
2726
"pytest-cov>=6.2.1",
2827
"pytest-mock>=3.14.1",
2928
"ruff>=0.12.0",
3029
"behave>=1.2.6",
3130
"pre-commit>=4.3.0",
3231
"nox>=2025.10.14",
32+
"ty>=0.0.1a24",
3333
]
3434

3535
[project.scripts]
@@ -49,13 +49,6 @@ testpaths = ["tests"]
4949
[tool.pyright]
5050
include = ["src"]
5151

52-
[tool.mypy]
53-
files = ["src", "tests"]
54-
cache_dir = "${HOME}/.mypy_cache"
55-
ignore_errors = false
56-
disallow_untyped_defs = true
57-
exclude = 'features/steps/.*'
58-
5952
[tool.ruff]
6053
target-version = "py311"
6154
line-length = 88
@@ -72,6 +65,10 @@ lint.select = [
7265
"D", # pydocstyle
7366
"PL", # pylint-like
7467
"C90", # mccabe
68+
"PERF", # performance
69+
"RUF", # ruff-specific
70+
"PTH", # pathlib
71+
"FLY", # f-strings
7572
]
7673

7774
lint.ignore = []

uv.lock

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

0 commit comments

Comments
 (0)