From 6127adb21b8cfc6f1d1febbb6b1f3201d2f73044 Mon Sep 17 00:00:00 2001 From: Mridang Agarwalla Date: Thu, 22 Jan 2026 20:49:22 +1100 Subject: [PATCH] chore(tooling): configure and update cache directories and switch from mypy to ty --- .gitignore | 5 ++++- pyproject.toml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7b160c7..2bf91ac 100644 --- a/.gitignore +++ b/.gitignore @@ -48,7 +48,7 @@ coverage.xml venv/ .venv/ .python-version -.pytest_cache +.pytest # Translations *.mo @@ -73,3 +73,6 @@ devbox.lock .devbox .uv-cache + +.ruff +.ty diff --git a/pyproject.toml b/pyproject.toml index 1e267dc..5964e59 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,6 +60,7 @@ include-package-data = true envlist = ["py310", "py311", "py312"] [tool.pytest.ini_options] +cache_dir = ".pytest" testpaths = ["test", "spec"] python_files = "test_*.py *_spec.py" addopts = [ @@ -78,6 +79,7 @@ omit = [ ] [tool.ruff] +cache-dir = ".ruff" line-length = 130 fix = true target-version = "py310" @@ -99,7 +101,8 @@ ignore_unused = [ "sphinx", "tox", "requests", - "ty" + "ty", + "tomlkit" ] [tool.ty.environment]