[PATCH patatt 5/7] Add ty checks
Tamir Duberstein <[email protected]>
| Newsgroups | org.kernel.linux.tools |
|---|---|
| Message-ID | <[email protected]> |
Add ty to the development dependencies and enable all ty rules. Signed-off-by: Tamir Duberstein <[email protected]> --- ci.sh | 1 + pyproject.toml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ci.sh b/ci.sh index 4b07fa2..c97c853 100755 --- a/ci.sh +++ b/ci.sh @@ -4,6 +4,7 @@ set -eu uv run ruff format --check uv run ruff check +uv run ty check uv run mypy . uv run pyright uv run pytest --durations=0 diff --git a/pyproject.toml b/pyproject.toml index 9615a41..34ff5ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,6 +31,7 @@ dev = [ "pyright", "pytest", "ruff", + "ty", ] [tool.setuptools.packages.find] @@ -69,6 +70,9 @@ executionEnvironments = [ { root = "tests", reportPrivateUsage = false }, ] +[tool.ty.rules] +all = "error" + # Configure mypy in strict mode [tool.mypy] strict = true -- 2.53.0