Skip to content

Commit

Permalink
[ENH] update pre-commit (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau authored Feb 4, 2025
1 parent 563ce8d commit 2077f64
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
[submodule "specification"]
path = specification
url = https://github.com/bids-standard/bids-specification.git
branch = master
[submodule "data/datasets/examples"]
path = data/datasets/examples
url = https://github.com/bids-standard/bids-examples
datalad-url = https://github.com/bids-standard/bids-examples
branch = master
[submodule "docs/collaboration/bids_github"]
path = docs/collaboration/bids_github
url = https://github.com/bids-standard/.github
branch = main
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
- id: mixed-line-ending

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
args: [--toml, pyproject.toml]
Expand All @@ -44,12 +44,12 @@ repos:
args: [--autofix, --indent, '4']

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.10.0
rev: 25.1.0
hooks:
- id: black

- repo: https://github.com/pycqa/isort
rev: 5.13.2
rev: 6.0.0
hooks:
- id: isort

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ We hope that these guidelines are designed to make it as easy as possible to get
If you have any questions that aren't discussed below, please let us know
by [opening an issue](https://github.com/bids-standard/bids-website/issues/new).

If you are not familiar with Git ansd GitHub,
If you are not familiar with Git and GitHub,
check our [generic contributing guidelines](https://bids-website.readthedocs.io/en/latest/collaboration/bids_github/CONTRIBUTING.html).

If you want to contribute to the BIDS website,
Expand Down
2 changes: 1 addition & 1 deletion data/beps/beps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
status:
- 'Focus on raw-ish data: channels by time: epoching, filtering, interpolation...'
- 'All provenance tracking: outsourced to BEP028 (“provenance”)'
- Re-using existing (raw) data formats where applicable
- Reusing existing (raw) data formats where applicable
- 'No additional entities or suffixes: focus on “desc” entity'
- Create new “descriptions.tsv” file to accompany and document the “desc” entity
- Working on examples on GitHub
Expand Down
2 changes: 1 addition & 1 deletion docs/collaboration/bids_github
2 changes: 1 addition & 1 deletion specification
Submodule specification updated 80 files
+4 −3 .circleci/config.yml
+3 −2 .codespellrc
+16 −7 .github/workflows/schemacode_ci.yml
+6 −5 .pre-commit-config.yaml
+0 −49 CODE_OF_CONDUCT.md
+2 −2 CONTRIBUTING.md
+5 −2 README.md
+4 −0 Release_Protocol.md
+7 −1 mkdocs.yml
+1 −1 pdf_build_src/pandoc_script.py
+24 −8 readthedocs.yml
+3 −3 src/appendices/arterial-spin-labeling.md
+4 −4 src/appendices/hed.md
+13 −5 src/common-principles.md
+6 −5 src/derivatives/common-data-types.md
+2 −2 src/derivatives/imaging.md
+1 −1 src/index.md
+5 −5 src/introduction.md
+1 −2 src/longitudinal-and-multi-site-studies.md
+14 −20 src/modality-agnostic-files.md
+2 −2 src/modality-specific-files/behavioral-experiments.md
+19 −19 src/modality-specific-files/electroencephalography.md
+1 −1 src/modality-specific-files/genetic-descriptor.md
+20 −20 src/modality-specific-files/intracranial-electroencephalography.md
+4 −4 src/modality-specific-files/magnetic-resonance-imaging-data.md
+7 −7 src/modality-specific-files/magnetoencephalography.md
+14 −14 src/modality-specific-files/motion.md
+15 −15 src/modality-specific-files/near-infrared-spectroscopy.md
+4 −4 src/modality-specific-files/physiological-recordings.md
+13 −13 src/modality-specific-files/positron-emission-tomography.md
+1 −1 src/modality-specific-files/task-events.md
+1 −1 src/schema/README.md
+1 −1 src/schema/SCHEMA_VERSION
+1 −0 src/schema/meta/versions.yaml
+1 −1 src/schema/objects/entities.yaml
+57 −50 src/schema/objects/metadata.yaml
+2 −2 src/schema/rules/checks/asl.yaml
+2 −2 src/schema/rules/checks/events.yaml
+18 −0 src/schema/rules/checks/mri.yaml
+2 −2 src/schema/rules/json/meg.yaml
+27 −13 src/schema/rules/sidecars/mri.yaml
+2 −1 src/schema/rules/sidecars/mrs.yaml
+54 −24 src/schema/rules/sidecars/pet.yaml
+1 −0 tools/schemacode/MANIFEST.in
+0 −57 tools/schemacode/bidsschematools/__main__.py
+0 −1 tools/schemacode/bidsschematools/data/metaschema.json
+0 −1 tools/schemacode/bidsschematools/data/schema
+12 −14 tools/schemacode/pyproject.toml
+0 −0 tools/schemacode/src/bidsschematools/__init__.py
+191 −0 tools/schemacode/src/bidsschematools/__main__.py
+22 −8 tools/schemacode/src/bidsschematools/conftest.py
+0 −0 tools/schemacode/src/bidsschematools/data/__init__.py
+1 −0 tools/schemacode/src/bidsschematools/data/metaschema.json
+1 −0 tools/schemacode/src/bidsschematools/data/schema
+0 −0 tools/schemacode/src/bidsschematools/data/tests/test_rules.py
+1 −2 tools/schemacode/src/bidsschematools/expressions.py
+0 −0 tools/schemacode/src/bidsschematools/render/__init__.py
+1 −6 tools/schemacode/src/bidsschematools/render/tables.py
+1 −7 tools/schemacode/src/bidsschematools/render/text.py
+19 −0 tools/schemacode/src/bidsschematools/render/tsv.py
+0 −0 tools/schemacode/src/bidsschematools/render/utils.py
+0 −0 tools/schemacode/src/bidsschematools/rules.py
+0 −4 tools/schemacode/src/bidsschematools/schema.py
+0 −0 tools/schemacode/src/bidsschematools/tests/__init__.py
+0 −0 tools/schemacode/src/bidsschematools/tests/data/__init__.py
+0 −0 tools/schemacode/src/bidsschematools/tests/data/broken_dataset_description.json
+0 −0 tools/schemacode/src/bidsschematools/tests/data/expected_bids_validator_xs_write.log
+0 −0 tools/schemacode/src/bidsschematools/tests/test_expressions.py
+7 −13 tools/schemacode/src/bidsschematools/tests/test_make_testdata.py
+0 −0 tools/schemacode/src/bidsschematools/tests/test_render_tables.py
+0 −0 tools/schemacode/src/bidsschematools/tests/test_render_text.py
+0 −0 tools/schemacode/src/bidsschematools/tests/test_render_utils.py
+0 −0 tools/schemacode/src/bidsschematools/tests/test_rules.py
+0 −0 tools/schemacode/src/bidsschematools/tests/test_schema.py
+0 −0 tools/schemacode/src/bidsschematools/tests/test_validator.py
+0 −0 tools/schemacode/src/bidsschematools/types/__init__.py
+4 −1 tools/schemacode/src/bidsschematools/types/namespace.py
+14 −1 tools/schemacode/src/bidsschematools/utils.py
+1 −1 tools/schemacode/src/bidsschematools/validator.py
+1 −0 tools/schemacode/tests/data/.gitignore

0 comments on commit 2077f64

Please sign in to comment.