chore: release v0.7.0 contracts pack, schema-snapshot, validate-contract#36
Merged
Pawansingh3889 merged 2 commits intomainfrom May 2, 2026
Merged
chore: release v0.7.0 contracts pack, schema-snapshot, validate-contract#36Pawansingh3889 merged 2 commits intomainfrom
Pawansingh3889 merged 2 commits intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Cuts v0.7.0 to PyPI. This is the headline release for the Contracts theme: schema-aware linting via the new C001-C005 rule pack, two new CLI subcommands (
schema-snapshot,validate-contract), and three community-contributed rules (W014 / W015 / W022).Headline features
--contract path.ymlflag enables 5 schema-aware rules (C001-C005). Without it, behaviour is identical to v0.6.xschema-snapshotpip install "sql-sop[snapshot]"validate-contractcase-without-elseCASE/ENDtoken-by-token. Contributed by @hellozzm (#32)join-function-on-columncross-join-explicitCROSS JOIN. Contributed by @vibeyclaw (#31)Rule counts
--contract: 48 rules (12 errors, 31 warnings, 5 Python-source)Backwards compatibility
No breaking changes. All Contracts-pack rules require an explicit
--contractflag (orcontract:field in.sql-guard.yml); silent without it.Files in this PR
pyproject.toml: 0.6.2 → 0.7.0CHANGELOG.md: cut [Unreleased] → [0.7.0] - 2026-05-02 with headline summaryREADME.md: bumped Version, Tests count (152 → 210), pre-commit rev pin (v0.6.2 → v0.7.0), description text.pre-commit-config.yaml: self-reference rev pin (v0.6.2 → v0.7.0)ROADMAP.md: refreshed Current release section to point at v0.7.0Tests
pytest: 209 passed, 1 skippedruff check: cleanNext steps after merge
v0.7.0on main>=0.7.0if they want the contract loader API