Skip to content

Conversation

@kdeldycke
Copy link
Contributor

To prevent future contributors to introduce inconsistencies, I propose to add a unit test which enforce uniqueness of some lexer's metadata:

  • name
  • aliases
  • mimetypes

@Anteru
Copy link
Collaborator

Anteru commented May 19, 2024

That's a good idea, and I guess we could extend this in the future to make sure the version is not out of whack, etc. Thanks!

@Anteru Anteru merged commit 9067df6 into pygments:master May 19, 2024
@kdeldycke
Copy link
Contributor Author

That's a good idea, and I guess we could extend this in the future to make sure the version is not out of whack, etc. Thanks!

Yes, that's the idea. But for this PR I played it safe and only validated the metadata I was familiar with from my last weeks experiments! :)

@kdeldycke kdeldycke deleted the lexer-metadata-uniqueness branch May 19, 2024 17:13
@Anteru Anteru added this to the 2.19.0 milestone Jan 5, 2025
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