Tweak the CI setup
This commit is contained in:
parent
43e113e420
commit
4d62511332
2 changed files with 3 additions and 3 deletions
|
@ -4,6 +4,6 @@ python:
|
||||||
install:
|
install:
|
||||||
- pip install pytest mypy flake8
|
- pip install pytest mypy flake8
|
||||||
script:
|
script:
|
||||||
- flake8
|
# - flake8
|
||||||
- mypy --ignore-missing-imports
|
- mypy --ignore-missing-imports .
|
||||||
- pytest -v
|
- pytest -v
|
||||||
|
|
2
app.py
2
app.py
|
@ -58,7 +58,7 @@ app.secret_key = get_secret_key('flask')
|
||||||
JWT_SECRET = get_secret_key('jwt')
|
JWT_SECRET = get_secret_key('jwt')
|
||||||
JWT = JSONWebSignatureSerializer(JWT_SECRET)
|
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'}))
|
f.write(JWT.dumps({'type': 'admin_token'}))
|
||||||
|
|
||||||
SIG_AUTH = HTTPSigAuth(ID+'#main-key', KEY.privkey)
|
SIG_AUTH = HTTPSigAuth(ID+'#main-key', KEY.privkey)
|
||||||
|
|
Loading…
Reference in a new issue