mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
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:
|
||||
- pip install pytest mypy flake8
|
||||
script:
|
||||
- flake8
|
||||
- mypy --ignore-missing-imports
|
||||
# - flake8
|
||||
- mypy --ignore-missing-imports .
|
||||
- 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 = 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)
|
||||
|
|
Loading…
Reference in a new issue