Tweak the CI setup

This commit is contained in:
Thomas Sileo 2018-05-18 20:44:14 +02:00
parent 43e113e420
commit 4d62511332
2 changed files with 3 additions and 3 deletions

View file

@ -4,6 +4,6 @@ python:
install:
- pip install pytest mypy flake8
script:
- flake8
- mypy --ignore-missing-imports
# - flake8
- mypy --ignore-missing-imports .
- pytest -v

2
app.py
View file

@ -58,7 +58,7 @@ app.secret_key = get_secret_key('flask')
JWT_SECRET = get_secret_key('jwt')
JWT = JSONWebSignatureSerializer(JWT_SECRET)
with open('config/jwt_token', 'wb+') as f:
with open('config/jwt_token', 'w+') as f:
f.write(JWT.dumps({'type': 'admin_token'}))
SIG_AUTH = HTTPSigAuth(ID+'#main-key', KEY.privkey)