Skip to content

Commit 4bff2de

Browse files
authored
Add AGENTS.md (#136)
1 parent 252101a commit 4bff2de

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

template/.claude/CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../AGENTS.md

template/AGENTS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Lockfiles must be consistent with package metadata. After any change to `pixi.toml`, run `pixi lock`.
2+
3+
Everything runs in a pixi environment. Any command (like `pytest`) must be prefixed with `pixi run` (e.g. `pixi run pytest`).
4+
5+
Code formatting must align with our standards. Run `pixi run lint` before `git commit`s to ensure this.

tests/test_template.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ def test_add_autobump_workflow(generate_project, add_autobump_workflow):
4646
).exists() == add_autobump_workflow
4747

4848

49+
def test_agents_md(generated_project):
50+
assert (generated_project / "AGENTS.md").exists()
51+
claude_md = generated_project / ".claude" / "CLAUDE.md"
52+
assert claude_md.is_symlink()
53+
assert claude_md.resolve() == (generated_project / "AGENTS.md").resolve()
54+
55+
4956
@pytest.mark.parametrize(
5057
"minimal_python_version", ["py310", "py311", "py312", "py313", "py314"]
5158
)

0 commit comments

Comments
 (0)