chore: pre-commit update

This commit is contained in:
Éloi Rivard 2023-12-26 01:13:11 +01:00
parent 9bef0a31a0
commit a237fa0198
No known key found for this signature in database
GPG key ID: 7EDA204EA57DD184
3 changed files with 8 additions and 11 deletions

View file

@ -1,5 +1,11 @@
--- ---
repos: 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 - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0 rev: v4.5.0
hooks: hooks:
@ -9,11 +15,6 @@ repos:
- id: end-of-file-fixer - id: end-of-file-fixer
exclude: "\\.svg$|\\.map$|\\.min\\.css$|\\.min\\.js$|\\.po$|\\.pot$" exclude: "\\.svg$|\\.map$|\\.min\\.css$|\\.min\\.js$|\\.po$|\\.pot$"
- id: check-toml - 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 - repo: https://github.com/asottile/reorder_python_imports
rev: v3.12.0 rev: v3.12.0
hooks: hooks:
@ -24,10 +25,6 @@ repos:
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: ["--py38-plus"] args: ["--py38-plus"]
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/rtts/djhtml - repo: https://github.com/rtts/djhtml
rev: 3.0.6 rev: 3.0.6
hooks: hooks:

View file

@ -473,7 +473,7 @@ class ClientRegistrationEndpoint(ClientManagementMixin, _ClientRegistrationEndpo
# directly implemented in authlib: # directly implemented in authlib:
# https://gitlab.com/yaal/canaille/-/issues/157 # https://gitlab.com/yaal/canaille/-/issues/157
post_logout_redirect_uris=request.data.get("post_logout_redirect_uris"), 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.audience = [client]
client.save() client.save()

View file

@ -158,7 +158,7 @@ def id_token(testclient, client, user, backend):
{}, {},
generate_user_info(user, client.scope), generate_user_info(user, client.scope),
aud=client.client_id, aud=client.client_id,
**get_jwt_config(None) **get_jwt_config(None),
) )