Skip to content

Add option to load hexdoc patterns from a JSON file instead of scraping them with regex #911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

object-Object
Copy link
Member

@object-Object object-Object commented Jul 19, 2025

This will help allow users to generate hexdoc books for addons without source code available (ie. from a JAR). It's also a necessary prerequisite for creating a datagen tool to generate hexdoc pattern info, which would make the regex stub entirely unnecessary.

This PR also includes the following small changes:

  • Update Pyright type checking settings.
  • Allow extra values in PatternInfo.
  • Make extra.hexcasting.pattern_stubs default to an empty list.
  • Add boolean option extra.hexcasting.allow_duplicates (default false). If true, we log a warning instead of raising an exception if a duplicate pattern is detected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

Successfully merging this pull request may close these issues.

1 participant