forked from Github-Mirrors/canaille
chore: pre-commit update
This commit is contained in:
parent
9bef0a31a0
commit
a237fa0198
3 changed files with 8 additions and 11 deletions
|
@ -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:
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue