Skip to content

Fix Hatch code version source schema - #5988

Merged
hyperupcall merged 1 commit into
SchemaStore:masterfrom
15r10nk:fix-hatch-version-source-path
Jul 17, 2026
Merged

Fix Hatch code version source schema#5988
hyperupcall merged 1 commit into
SchemaStore:masterfrom
15r10nk:fix-hatch-version-source-path

Conversation

@15r10nk

@15r10nk 15r10nk commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • allow Hatch version sources that use both source and path, such as source = code
  • model code version source options including expression and search-paths
  • keep source-only version plugins separate from path-based configuration
  • add a Hatch fixture for the documented code version source configuration

Validation

  • node ./cli.js check --schema-name=hatch.json
  • pnpm exec prettier --config .prettierrc.cjs --ignore-path .gitignore --check src/schemas/json/hatch.json src/test/hatch/version-code-source.toml
  • uv run --with jsonschema python ... checked all src/test/hatch/*.toml as valid
  • uv run --with jsonschema python ... checked all src/negative_test/hatch/*.toml remain invalid
  • validated inline-snapshot's [tool.hatch] table against the patched schema

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the PR!

This section of the codebase is owned by @madskristensen and @hyperupcall - if they write a comment saying "LGTM" then it will be merged.

@15r10nk
15r10nk force-pushed the fix-hatch-version-source-path branch from f816027 to 626d4e4 Compare July 15, 2026 18:50
@hyperupcall

Copy link
Copy Markdown
Member

Thanks

@hyperupcall
hyperupcall merged commit d1a4056 into SchemaStore:master Jul 17, 2026
4 checks passed
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.

2 participants