Skip to content

Commit

Permalink
chore: pre-commit update
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Dec 26, 2023
1 parent 9bef0a3 commit a237fa0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
15 changes: 6 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
---
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.1.9'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
Expand All @@ -9,11 +15,6 @@ repos:
- id: end-of-file-fixer
exclude: "\\.svg$|\\.map$|\\.min\\.css$|\\.min\\.js$|\\.po$|\\.pot$"
- id: check-toml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.1.6'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.12.0
hooks:
Expand All @@ -24,10 +25,6 @@ repos:
hooks:
- id: pyupgrade
args: ["--py38-plus"]
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/rtts/djhtml
rev: 3.0.6
hooks:
Expand Down
2 changes: 1 addition & 1 deletion canaille/oidc/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def save_client(self, client_info, client_metadata, request):
# directly implemented in authlib:
# https://gitlab.com/yaal/canaille/-/issues/157
post_logout_redirect_uris=request.data.get("post_logout_redirect_uris"),
**self.client_convert_data(**client_info, **client_metadata)
**self.client_convert_data(**client_info, **client_metadata),
)
client.audience = [client]
client.save()
Expand Down
2 changes: 1 addition & 1 deletion tests/oidc/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def id_token(testclient, client, user, backend):
{},
generate_user_info(user, client.scope),
aud=client.client_id,
**get_jwt_config(None)
**get_jwt_config(None),
)


Expand Down

0 comments on commit a237fa0

Please sign in to comment.