Skip to content

Commit 702685d

Browse files
mkniewallnerkonstin
authored andcommitted
ci: validate project metadata (#8973)
## Summary As per #8943 (comment), adding a CI step to validate project metadata. Documentation for the tool: https://validate-pyproject.readthedocs.io/en/stable/readme.html. `store` is an extra that uses [this package](https://github.com/henryiii/validate-pyproject-schema-store) to get a weekly update of the schema in SchemaStore. ## Test Plan Step passes on CI, and testing the same command locally while voluntarily using a wrong classifier fails: ```console $ uvx --from 'validate-pyproject[all,store]' validate-pyproject pyproject.toml Invalid file: pyproject.toml [ERROR] `project.classifiers[5]` must be trove-classifier ```
1 parent 7d72071 commit 702685d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ jobs:
8282
- name: "Python type check"
8383
run: uvx mypy
8484

85+
- name: "Validate project metadata"
86+
run: uvx --from 'validate-pyproject[all,store]' validate-pyproject pyproject.toml
87+
8588
- name: "Lint shell scripts"
8689
uses: ludeeus/[email protected]
8790
env:

0 commit comments

Comments
 (0)