Skip to content

Commit

Permalink
drop jsonlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed May 18, 2024
1 parent d27ebe1 commit 3855520
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install reproschema
npm install -g jsonlint
pip install reproschema pre-commit
pre-commit install
- name: validate
run: make validate
9 changes: 2 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,9 @@ convert: download
clean_artemis:
rm -rf $(ARTEMIS_TSV)

validate: validate_syntax validate_schema

# Validate jsonld
validate_syntax:
grep -r "@context" schemas | cut -d: -f1 | xargs -I {} jsonlint -q {}

# you will need to install reproschema-py to run this one ( pip install reproschema )
validate_schema:
validate:
pre-commit run -a check-json
reproschema -l DEBUG validate schemas/artemis/activities
reproschema -l DEBUG validate schemas/artemis/protocols
reproschema -l DEBUG validate schemas/artemis/artemis_schema.jsonld
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ rich
black
flake8
pre-commit
reproschema-py

0 comments on commit 3855520

Please sign in to comment.