From e94b2493e761ea88dd01fd06672a9ea9f7668c08 Mon Sep 17 00:00:00 2001 From: Jonathan Boniface Date: Wed, 16 Sep 2026 10:27:22 +0100 Subject: [PATCH] chore: consolidate tool caches under .cache/ pytest, mypy and ruff now write to .cache/pytest, .cache/mypy and .cache/ruff instead of three dot-directories in the repository root. ruff.toml and mypy.ini set only the cache location, so lint and type rules are unchanged. Co-Authored-By: Claude Opus 5 --- .gitignore | 6 ++---- mypy.ini | 3 +++ pytest.ini | 1 + ruff.toml | 2 ++ 4 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 mypy.ini create mode 100644 ruff.toml diff --git a/.gitignore b/.gitignore index f6a17fc..a4f10a0 100644 --- a/.gitignore +++ b/.gitignore @@ -6,13 +6,11 @@ *.db gcp_agent_local.db -# Python & pytest caches +# Python bytecode and tool caches (pytest, mypy and ruff write to .cache/) __pycache__/ *.pyc *.pyo -.pytest_cache/ -.mypy_cache/ -.ruff_cache/ +.cache/ # Virtual Environments .venv/ diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 0000000..bf53e96 --- /dev/null +++ b/mypy.ini @@ -0,0 +1,3 @@ +[mypy] +# Tool caches live under .cache/ to keep the repository root clean. +cache_dir = .cache/mypy diff --git a/pytest.ini b/pytest.ini index 5b71f0b..b083d54 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,5 +1,6 @@ [pytest] testpaths = tests +cache_dir = .cache/pytest asyncio_mode = auto asyncio_default_fixture_loop_scope = function filterwarnings = diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 0000000..0b8b15d --- /dev/null +++ b/ruff.toml @@ -0,0 +1,2 @@ +# Tool caches live under .cache/ to keep the repository root clean. +cache-dir = ".cache/ruff"