Skip to content

Commit 6ec6baf

Browse files
committed
lint
1 parent 913cfdb commit 6ec6baf

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-22.04
1212
steps:
1313
- uses: actions/checkout@v2
14-
- name: set up python 3.7
14+
- name: set up python 3.11
1515
uses: actions/setup-python@v2
1616
with:
17-
python-version: 3.7
17+
python-version: 3.11
1818
- name: lint it
1919
run: python -m pip install --upgrade pip
2020
- name: lint
@@ -30,12 +30,12 @@ jobs:
3030
uses: conda-incubator/setup-miniconda@v2
3131
with:
3232
auto-update-conda: true
33-
python-version: 3.7
33+
python-version: 3.11
3434

3535
- name: Install
3636
shell: bash -l {0}
3737
run: |
38-
conda create --yes -n test-microsetta-interface python=3.7
38+
conda create --yes -n test-microsetta-interface python=3.11
3939
conda activate test-microsetta-interface
4040
conda install --yes --file ci/conda_requirements.txt
4141
pip install -r ci/pip_requirements.txt
@@ -79,7 +79,7 @@ jobs:
7979
uses: conda-incubator/setup-miniconda@v2
8080
with:
8181
auto-update-conda: true
82-
python-version: 3.7
82+
python-version: 3.11
8383

8484
- name: Install
8585
env:

microsetta_interface/implementation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,8 @@ def wrapper(**kwargs):
779779
# Client might not technically care who the user is, but if they do, they
780780
# get the token, validate it, and pull email out of it.
781781
def _parse_jwt(token):
782-
decoded = jwt.decode(token, PUB_KEY, algorithms=['RS256'], options={'verify_signature': True})
782+
decoded = jwt.decode(token, PUB_KEY, algorithms=['RS256'],
783+
options={'verify_signature': True})
783784
email_verified = decoded.get('email_verified', False)
784785
return decoded["email"], email_verified
785786

0 commit comments

Comments
 (0)