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 <noreply@anthropic.com>
This commit is contained in:
2026-09-16 10:27:22 +01:00
parent ad371b2ec4
commit e94b2493e7
4 changed files with 8 additions and 4 deletions

6
.gitignore vendored
View File

@@ -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/

3
mypy.ini Normal file
View File

@@ -0,0 +1,3 @@
[mypy]
# Tool caches live under .cache/ to keep the repository root clean.
cache_dir = .cache/mypy

View File

@@ -1,5 +1,6 @@
[pytest]
testpaths = tests
cache_dir = .cache/pytest
asyncio_mode = auto
asyncio_default_fixture_loop_scope = function
filterwarnings =

2
ruff.toml Normal file
View File

@@ -0,0 +1,2 @@
# Tool caches live under .cache/ to keep the repository root clean.
cache-dir = ".cache/ruff"