Skip to content

Commit

Permalink
[INFRA] Introduce metaschema (#1787)
Browse files Browse the repository at this point in the history
* add metaschema and code to validate it.

* WIP metaschema and code to validate

* update schema

* objects finished

* add rules

* add checks

* add rules.files.common

* add files.common.core and files.common.tables

* add rules.files.deriv

* dereferencing working

* checkpoint

* checkpoint

* add rules.sidecars

* sidecar derivatives checkpoint

* tabular_data checkpoint

* DONE!

* DONE!

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix typo

* blackify

* include references to draft7 metaschema

* move metaschema

* add tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* move things around

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update tools/schemacode/bidsschematools/validate_schema.py

Co-authored-by: Taylor Salo <[email protected]>

* fix typo

* add jsonschema to deps

* fixing up checks

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* install jsonschema types

* fix pathing

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* flake8

* try changing schema path

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix paths

* use existing functions

* convert from namespace

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update fields for existing loader

* fix required props

* ENH: Link metaschema into package data

* RF: Use package data instead of relying on CWD

* STY: Import from top-level jsonschema

* PY38: importlib_resources

* use "deprecated" instead of "DEPRECATED"

* move to schema.py and test_schema.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update src/schema/objects/common_principles.yaml

* Update README.md

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Taylor Salo <[email protected]>
Co-authored-by: Chris Markiewicz <[email protected]>
  • Loading branch information
4 people authored Apr 19, 2024
1 parent 1cb92eb commit 3896ba5
Show file tree
Hide file tree
Showing 8 changed files with 796 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,6 @@ repos:
- pytest
- types-PyYAML
- types-tabulate
- types-jsonschema
args: ["tools/schemacode/bidsschematools"]
pass_filenames: false
Loading

0 comments on commit 3896ba5

Please sign in to comment.