Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ htmlcov/
.mypy_cache/
.tox/

# --- pt-snap runtime artifacts ---
# `pt-snap focus` and `pt-snap import` write the project focus file into the
# current directory, so dogfooding from the repository root creates this.
.pt-snap/

# --- Local agent/tool scratch (not project source) ---
.agents/*
.claude/*
.codex/*
.opencode/*
.tmp/*
tmp/
.skill-evals/
openspec/
specs/
Expand Down
5 changes: 5 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ Run these commands from the repository root.
coverage reports under `test_reports/`; use direct `pytest` commands unless
that local environment is intentionally available.

Local-only directories (`.pt-snap/` written by `pt-snap focus`/`pt-snap import`,
`tmp/`, `.tmp/`, `.worktrees/`) are ignored by Git and excluded from Ruff and
Black in `pyproject.toml`, so the root-level lint commands above stay stable
when they exist.

## Scoped Guidance

| Scope | Guide | Responsibility |
Expand Down
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,22 @@ local_scheme = "no-local-version"
[tool.black]
line-length = 100
target-version = ["py310"]
# Local-only directories that may exist in a checkout but are not project source.
# Both tools already honor .gitignore; listing them here keeps `black --check .`
# and `ruff check .` stable even when run with gitignore handling disabled.
extend-exclude = '''
/(
\.pt-snap
| \.tmp
| \.worktrees
| tmp
)/
'''

[tool.ruff]
line-length = 100
target-version = "py310"
extend-exclude = [".pt-snap", ".tmp", ".worktrees", "tmp"]

[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "C4"]
Expand Down
Loading