Commit Graph

6 Commits

Author SHA1 Message Date
nvaldez 0dedc45e71 feat: add pycustomlint check to sanity runner with unified linter report
- Wire PythonCustomLinter into run_sanity as the pycustomlint check
  (imports directly from the customlinter package; MAX_WORKERS 4 -> 5)
- Use BaseLinter.format_violations_report so every sanity linter
  (markdownlint, frontmatter_lint, pycustomlint) prints the same
  TARGET/DEFINITIONS/FILE/SUMMARY format; align summary line order in
  base.py with the fmlint and mdoctor reports
- Remove dead backward-compat shims (src/mdoctor/fmlint.py,
  src/python_ruff/pycustomlint.py); nothing imported them
- Hoist all 45 inline imports in src to module level per the python-tdd
  skill, fixing the one test mock that relied on the lazy import
- Sync SPEC: 4.2/4.4 covers, new 4.9.3 Linter Report Format section,
  frontmatter version 0.27.9 -> 0.28.0

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-09-27 20:28:07 +02:00
nvaldez 9a88619e3d feat: per-file TOC marker priority, --sectionized flag, project-wide logging
Per-file TOC (SPEC 4.8.2):
- toc-start markers record their params (sectionized, headings range);
  on regeneration the marker params have priority, then CLI arguments,
  then fiona-settings.json defaults; legacy bare markers are upgraded
- --sectionized forces section numbering on for the run
- folder TOC validates its target: a file or missing path exits 1 with
  a hint toward 'librarian toc file'; empty folders are reported
- MD032-compliant TOC block layout (blank lines around the entry list)
- wiki root discovery skips build artifacts (build/, dist/, __pycache__/,
  *.egg-info/) that shadowed the real settings with stale copies

Logging (SPEC 5.1):
- shared fiona.logging_config used by every CLI entry point; level from
  LOG_LEVEL env > fiona.log_level > WARNING; physical-file logging via
  fiona.file_log_level / fiona.file_log_location
- operational TOC logs promoted to INFO so file logs record activity

Docs:
- SPEC section references renumbered after sectionize (1.x/2.x/3.x ->
  3.x/4.x/5.x) across code, tests, AGENTS.md, todo.md and the template
2026-09-26 18:47:06 +02:00
nvaldez 91c363f477 fix ruff violations 2026-09-23 21:03:09 +02:00
nvaldez 263f14b92e ruff linter unsafe fix 2026-09-22 11:28:57 +02:00
nvaldez b906cfea2d ruff linter implemented 2026-09-22 09:33:34 +02:00
nvaldez 220ab121ec ruff linter implemented 2026-09-22 09:30:56 +02:00