Skip to content

Commit

Permalink
replace jsonlint with json.tool
Browse files Browse the repository at this point in the history
As proposed by Newbyte
  • Loading branch information
rinigus committed Jan 29, 2021
1 parent 23247ca commit 413046f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ all: check test

check:
python3 -m pyflakes geocoders guides poor routers
find . -type f -name "*.json" -exec jsonlint -q {} \;
find . -type f -name "*.json" -print0 | xargs -0 -n 1 tools/check-json

test:
py.test geocoders guides poor routers
Expand Down
6 changes: 6 additions & 0 deletions tools/check-json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

set -e

echo Checking "$1"
python -m json.tool "$1" > /dev/null || (echo Check failed && exit 255)

0 comments on commit 413046f

Please sign in to comment.