Skip to content

Commit c3dda12

Browse files
authored
Upgrade GitHub Actions and make bandit, codespell, and pytest mandatory (#835)
* Upgrade GitHub Actions * Fix typo discovered by codespell * Update lint_python.yml
1 parent a70e13f commit c3dda12

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/lint_python.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,24 @@ jobs:
44
lint_python:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v2
8-
- uses: actions/setup-python@v2
7+
- uses: actions/checkout@v3
8+
- uses: actions/setup-python@v4
9+
with:
10+
python-version: 3.x
911
- run: pip install --upgrade pip wheel
1012
- run: pip install bandit black codespell flake8 flake8-2020 flake8-bugbear
1113
flake8-comprehensions isort mypy pytest pyupgrade safety
12-
- run: bandit --recursive --skip B101 . || true # B101 is assert statements
14+
- run: bandit --recursive --skip B101,B105,B106,B107,B324 .
1315
- run: black --check . || true
14-
- run: codespell || true # --ignore-words-list="" --skip="*.css,*.js,*.lock"
16+
- run: codespell # --ignore-words-list="" --skip="*.css,*.js,*.lock"
1517
- run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
1618
- run: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88
1719
--show-source --statistics
1820
- run: isort --check-only --profile black . || true
19-
- run: pip install -r requirements.txt || pip install --editable . || true
21+
- run: pip install -r requirements-test.txt
22+
- run: pip install --editable .
2023
- run: mkdir --parents --verbose .mypy_cache
2124
- run: mypy --ignore-missing-imports --install-types --non-interactive . || true
22-
- run: pytest . || true
23-
- run: pytest --doctest-modules . || true
24-
- run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true
25+
- run: pytest
26+
- run: shopt -s globstar && pyupgrade --py37-plus **/*.py || true
2527
- run: safety check

oauthlib/openid/connect/core/request_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def finalize_id_token(self, id_token, token, token_handler, request):
143143
Token MUST NOT be accepted by the RP when performing
144144
authentication with the OP.
145145
146-
Additionals claims must be added, note that `request.scope`
146+
Additional claims must be added, note that `request.scope`
147147
should be used to determine the list of claims.
148148
149149
More information can be found at `OpenID Connect Core#Claims`_

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy