Skip to content

Commit a947957

Browse files
authored
codex/chore/ruff base config (#73)
* chore: extend ruff config from portfolio base Switches [tool.ruff] to extend from ~/Projects/ruff.toml which holds the shared baseline (line-length=100, select=E/F/I/UP). Per-repo extras kept via extend-select; target-version stays local. * fix(release): use os.path.expanduser in test fixture instead of hardcoded path * fix(ci): remove parent ruff.toml extend that doesn't exist in CI
1 parent 4d414ce commit a947957

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,8 @@ tests_dir = "tests/"
9595

9696
[tool.ruff]
9797
target-version = "py311"
98-
line-length = 100
9998

10099
[tool.ruff.lint]
101-
select = ["E", "F", "I"]
102100
ignore = ["E501"]
103101

104102
[tool.setuptools_scm]

tests/test_run_instructions_audit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ def test_build_record_resolves_path_and_all_six_claims():
9292
"project_summary_present": True, # one set True to prove per-field mapping
9393
},
9494
}
95-
record = build_record(project, "/Users/d/Projects")
95+
record = build_record(project, os.path.expanduser("~/Projects"))
9696

97-
assert record["abs_path"] == "/Users/d/Projects/Fun:GamePrjs/BattleGrid"
97+
assert record["abs_path"] == os.path.expanduser("~/Projects/Fun:GamePrjs/BattleGrid")
9898
assert record["primary_file_name"] == "AGENTS.md" # no CLAUDE.md → AGENTS.md
9999
assert record["context_files"] == ["AGENTS.md", "README.md"]
100100
assert record["project_key"] == "Fun:GamePrjs/BattleGrid"

0 commit comments

Comments
 (0)