diff options
author | Victor Näslund <victor@sunet.se> | 2022-11-02 15:31:23 +0100 |
---|---|---|
committer | Victor Näslund <victor@sunet.se> | 2022-11-02 15:31:23 +0100 |
commit | 8baecf339e8061160bee519e87ffe837d1525c18 (patch) | |
tree | 22664c10f22382b1d4647b5f2e96bcea4220d879 /dev-run.sh | |
parent | ffb26f4a81a9ca61c4105df037f7e1beb8dc5fb0 (diff) |
more freshup
Diffstat (limited to 'dev-run.sh')
-rwxr-xr-x | dev-run.sh | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -1,15 +1,18 @@ #!/bin/bash + +echo "Checking package" +mypy --strict --namespace-packages --ignore-missing-imports --cache-dir=/dev/null src/collector/*.py # || exit 1 +black --line-length 120 src/collector/*.py # || exit 1 +pylint --max-line-length 120 src/collector/*.py # || exit 1 + + bash quickstart.sh -b || exit 1 -sleep 2 +sleep 3 JWT=$(curl -k http://localhost:8000/api/v1.0/auth -X POST -p -u usr:pwd | jq -r .access_token) || exit 1 curl -k --data-binary @example_data_1.json -H "Authorization: Bearer $JWT" https://localhost:1443/sc/v0/add || exit 1 exit 0 -echo "Checking package" -mypy --strict --namespace-packages --ignore-missing-imports --cache-dir=/dev/null src/*.py || exit 1 -black --line-length 120 src/*.py || exit 1 -pylint --max-line-length 120 src/*.py || exit 1 echo "Checking tests" #mypy --strict --namespace-packages --ignore-missing-imports --cache-dir=/dev/null tests/*.py || exit 1 |