Skip to content

feat: add source locations and SKILL.md fix links to CLI errors - #293

Open
ArdaTkn wants to merge 1 commit into
SkyeAv:mainfrom
ArdaTkn:feat/error-source-locations
Open

ArdaTkn wants to merge 1 commit into
SkyeAv:mainfrom
ArdaTkn:feat/error-source-locations

Conversation

@ArdaTkn

@ArdaTkn ArdaTkn commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Closes #280.

Summary

  • Add repo-owned SKILL.md with remediation sections and stable anchors for YAML parse errors and key config validation codes.
  • Add from_yaml_with_locations and to_sections_with_locations in src/tablassert/ingests.py to track exact 1-based (file, line, column) coordinates across YAML mappings/sequences, preserving template: coordinates on inherited keys and raising YamlParseError (yaml-parse-error) with exact coordinates when PyYAML reports a problem_mark (never fabricating a line/column when absent).
  • Update flatten_pydantic_error, GraphValidationError, and SectionValidationError in src/tablassert/errors.py, and wire them into validate_pipeline / validate_graph_pipeline in src/tablassert/cli.py.
  • Add tests/test_error_locations.py and an Unreleased changelog entry in CHANGELOG.md.

Local gate

  • scripts/check_changelog.py --base upstream/main: PASS
  • ruff check . / ruff format --check .: clean
  • pyright: 0 errors
  • vulture / deptry .: clean
  • pytest tests/test_error_locations.py tests/test_errors.py tests/test_docs_style.py: 18 passed

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 98f1eacd-4392-476c-b2f4-53914648b7bb
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ArdaTkn
ArdaTkn force-pushed the feat/error-source-locations branch from aca8a32 to 431ab7f Compare November 19, 2026 22:45
@ArdaTkn
ArdaTkn force-pushed the feat/error-source-locations branch from 431ab7f to 78abd1c Compare November 19, 2026 23:18

This branch has not been deployed

No deployments
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.

Add source locations and SKILL.md fix links to CLI errors

1 participant