tree-sitter / parser-test-action

Test action for tree-sitter parsers
MIT License
2 stars 2 forks source link

feat: add a check whether "Homepage" pyproject metadata is reachable #1

Closed theHamsta closed 6 months ago

theHamsta commented 6 months ago

I realized that tree-sitter-cli automatically generates a "Homepage" field as github.com/tree-sitter/tree-sitter-<grammar>. This is mostly not correct when the parser is created outside of the tree-sitter organization.

We should probably reconsider how to "Homepage" fields is generated. Anyways a small check whether the Homepage in pyproject.yaml is reachable doesn't harm anyone.

theHamsta commented 6 months ago

hmm, you must manually enable test-python to see this. So the check will probably not be seen by anyone. It probably is placed better in the publish action and Python action breaks without any tests.

https://github.com/tree-sitter-grammars/tree-sitter-slang/pull/27

ObserverOfTime commented 6 months ago

Thank you but this is out of scope. There are several little things that need to be manually fixed by the parser author, until an init command is introduced. Note that the template does handle this for new projects.