Skip to content

Fix/lint and doc updates#7

Merged
cypher0n3 merged 7 commits into
mainfrom
fix/lint-and-doc-updates
Feb 3, 2026
Merged

Fix/lint and doc updates#7
cypher0n3 merged 7 commits into
mainfrom
fix/lint-and-doc-updates

Conversation

@cypher0n3
Copy link
Copy Markdown
Contributor

@cypher0n3 cypher0n3 commented Feb 2, 2026

PR: fix/lint-and-doc-updates

Summary

Lint and documentation updates: repo hygiene, CI/tooling improvements, script refactors, spec/requirements alignment, Go API stabilization, and BDD feature cleanup.

What changed

Repo and CI

  • License and lint deps: Renamed LICENSELICENSE.txt, updated README and AI instructions links. Moved requirements-lint.txt into scripts/ and updated Makefile/venv references.
  • Docs-check workflow: Validation reports now write under tmp/; markdownlint excludes #tmp/**. Go CI workflow adds explicit Go 1.25 setup and cache.
  • generate-anchor: Switched from TEXT='...' to file/line inputs (FILE='path/to/file.md', LINE='path/to/file.md:224') to avoid backtick quoting issues; updated copilot and AI coding instructions accordingly.
  • lint-python: All linters run then report; exit code reflects any failure (flake8, pylint, xenon, radon MI, bandit).
  • api/go Makefile: BDD output dir fixed for repo layout; added go-fmt target; golangci-lint runs once with full tree.

Scripts and validation

  • Modularization: Split large script utilities into focused packages: scripts/lib/validation/, scripts/lib/go_markdown/, scripts/lib/heading_numbering/, index parsing/rendering, and spec-reference/heading/link helpers. Validation entrypoints and scripts/README.md updated.
  • Go defs index: New scoring and type-keyword rules, matching helpers, and domain test; index tooling and docs refreshed.

Docs and specs

  • Tech specs and requirements: Aligned docs/requirements and docs/tech_specs with the current Package read/write operations framing (replacing PackageReader/PackageWriter-centric headings/links). Refreshed Go definitions index content and numbering.

Go API and tests

  • Package I/O and metadata: Normalized file data and path metadata handling for stable package I/O; unexported helpers where appropriate; length-prefixed I/O, slice validation, tags filter, and table-driven tests in api/go/metadata. Signatures, fileformat, generics, and novus_package updates for consistency and lint.

BDD features

  • basic_ops / file_mgmt: Removed duplicate package state transition feature block; normalized PathMetadataPatch scenario formatting.

Keep license/README references consistent and relocate Python lint requirements under scripts/.
- Write docs-check validation outputs under tmp/ and exclude tmp/ from markdownlint.
- Add Go setup in go-ci.
- Update generate-anchor workflow/Make targets to use file/line inputs to avoid backtick quoting issues.
- Improve lint-python target to report all failures.
Split large script utilities into focused modules (validation, go_markdown, heading_numbering, index utils, and spec reference helpers) and update validation entrypoints and docs accordingly.
Update tech specs and requirements links/headings to reflect the current Package read/write operations framing and refresh the Go definitions index entries.
Align Go implementation and tests with the updated package read/write API surface, including path metadata handling, file index/header behavior, signatures, and supporting helpers.
Remove duplicate package state transition feature block and normalize PathMetadataPatch literal formatting.
@cypher0n3 cypher0n3 force-pushed the fix/lint-and-doc-updates branch from a1bd8e4 to cc1ae11 Compare February 3, 2026 08:40
- CI: install lint tooling from scripts/requirements-lint.txt to match local
- go_markdown/_base.py: add from __future__ import annotations for Signature forward ref
@cypher0n3 cypher0n3 marked this pull request as ready for review February 3, 2026 08:54
@cypher0n3 cypher0n3 merged commit 0d166cb into main Feb 3, 2026
8 of 9 checks passed
@cypher0n3 cypher0n3 deleted the fix/lint-and-doc-updates branch February 3, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant