validate-pyproject-schema-store2024.11.11
validate-pyproject-schema-store2024.11.11
Published
A plugin set for validate-pyproject and schema-store.
pip install validate-pyproject-schema-store
Package Downloads
Authors
Project URLs
Requires Python
>=3.8
Dependencies
- importlib-resources
; python_version < "3.9"
- validate-pyproject
[all]; extra == "all"
- furo
>=2023.08.17; extra == "docs"
- myst-parser
>=0.13; extra == "docs"
- sphinx-autodoc-typehints
; extra == "docs"
- sphinx-copybutton
; extra == "docs"
- sphinx
>=7.0; extra == "docs"
- pytest-cov
>=3; extra == "test"
- pytest
>=6; extra == "test"
- tomli
; python_version < "3.11" and extra == "test"
- validate-pyproject
>=0.16; extra == "test"
- validate-pyproject
; extra == "validate-pyproject"
validate-pyproject-schema-store
This provides a versioned copy of SchemaStore for validate-pyproject. You can pin this to get a stable set of schema files.
Usage
The following should be supported:
Installing alongside validate-pyproject
Just use pip install validate-pyproject-schema-store
wherever you have
validate-pyproject[all]
installed. You can "inject" it if using pipx, or use
--pip-args
if using pipx run
.
In pre-commit, this would be:
repos:
- repo: https://github.com/abravalheri/validate-pyproject
rev: <insert here>
hooks:
- id: validate-pyproject
additional_dependencies: [validate-pyproject[all], validate-pyproject-schema-store]
Direct usage
For pre-commit or pipx, you can simplify this a bit by using this package directly. That looks like this:
pipx run validate-pyproject-schema-store[all]
Or for pre-commit:
repos:
- repo: https://github.com/henryiii/validate-pyproject-schema-store
rev: <insert here>
hooks:
- id: validate-pyproject
This also has the benefit that the version will be pinned and updated by pre-commit automatically.
Developing
This project uses hatch>=1.10
. You can run the sync script by running:
hatch run tools/sync.py