diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f3f90ed..24c3a18 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,14 +33,14 @@ repos: types: [file, yaml] entry: yamllint --strict - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.16.1 + rev: v0.16.6 hooks: - id: ruff-format alias: ruff - id: ruff-check alias: ruff - repo: https://github.com/zizmorcore/zizmor-pre-commit - rev: v1.29.0 + rev: v1.30.0 hooks: - id: zizmor args: [--pedantic] diff --git a/README.md b/README.md index 7bd8288..5ccd067 100644 --- a/README.md +++ b/README.md @@ -20,14 +20,18 @@ It is available as: ```python import schemastore + registry = schemastore.registry() ``` and use any of the API from the aforementioned referencing package to make use of the schemas, such as: ```python -print(registry.get_or_retrieve("https://json.schemastore.org/github-action.json").value) - +print( + registry.get_or_retrieve( + "https://json.schemastore.org/github-action.json" + ).value +) ``` though more typically you will use the registry alongside a JSON Schema validator such as those provided by the [`jsonschema` library](https://python-jsonschema.readthedocs.io/):