Test lexer metadata uniqueness by kdeldycke · Pull Request #2714 · pygments/pygments
Conversation
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
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!
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
deleted the
lexer-metadata-uniqueness
branch
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