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
8 changes: 7 additions & 1 deletion .claude/settings.local.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,13 @@
"Bash(cargo search *)",
"Bash(cargo add *)",
"Bash(cargo tree *)",
"Bash(curl -s https://crates.io/api/v1/crates/arrow/__TRACKED_VAR__.0.0)"
"Bash(curl -s https://crates.io/api/v1/crates/arrow/__TRACKED_VAR__.0.0)",
"Bash(.venv/Scripts/xenon src/ --max-average B --max-modules C --max-absolute D)",
"PowerShell(.venv/Scripts/python -m pytest tests/output/test_emit_render_block.py -x -q 2>&1)",
"PowerShell(.venv/Scripts/python -m pytest tests/dictionary/test_schema.py -x -q 2>&1 | Select-Object -Last 5)",
"PowerShell(.venv/Scripts/python -m pytest -q --tb=short 2>&1 | Select-Object -Last 5)",
"PowerShell(.venv/Scripts/python -m radon cc src/cifflow/dictionary/schema.py --show-complexity --min C 2>&1)",
"PowerShell(.venv/Scripts/python -m xenon src/ --max-average B --max-modules C --max-absolute D 2>&1)"
]
}
}
12 changes: 12 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,18 @@ Ingest a known-good file, emit, re-ingest, compare. `second.cif` is the primary
Load `cif_pow.dic` via `DictionaryLoader`, call `generate_schema`, call
`apply_schema`. See `tests/ingestion/test_integration.py` for the reference pattern.

### Complexity analysis
```
# Show all functions rated C or worse (the refactoring backlog)
.venv/Scripts/python -m radon cc src/ --show-complexity --min C

# Enforce thresholds (exits non-zero if any module averages above B,
# any function exceeds C, or any block exceeds D)
.venv/Scripts/xenon src/ --max-average B --max-modules C --max-absolute D
```
Grade scale: A ≤5, B 6–10, C 11–15, D 16–25, E 26–50, F 51+.
Target: no F or E functions; D functions should have a documented reason.

---

## Checklist Before Any Change
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dev = [
"bump-my-version",
"ruff>=0.4",
"pydoclint[flake8]>=0.4",
"radon>=6.0",
"xenon>=0.9",
]
docs = [
"mkdocs>=1.6",
Expand Down Expand Up @@ -97,3 +99,6 @@ convention = "numpy"
[tool.pydoclint]
style = "numpy"
arg-type-hints-in-docstring = false

[tool.radon]
exclude = "tests/*"
Loading
Loading