Skip to content

Commit

Permalink
Merge pull request #27 from waza-ari/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
waza-ari authored Mar 3, 2024
2 parents e9a194d + 45c55f3 commit 729cef8
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.2.0
hooks:
- id: black
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.1
hooks:
- id: pyupgrade
args: [--py37-plus, --keep-percent-format]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.9"
rev: "v0.2.2"
hooks:
- id: ruff
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This module providers a decorator that can be used to check if a user has a specific
permission.
"""

# pylint: disable=logging-not-lazy,consider-using-f-string
# NOTE: Using % formatting is the safest way as we allow custom loggers.
# There could be custom loggers that handle arguments differently
Expand Down
1 change: 1 addition & 0 deletions fastapi_keycloak_middleware/decorators/strip_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
This wrapper will check if the function contains the request argument and if
not, will remove it from kwargs before calling the function.
"""

from functools import wraps
from inspect import signature

Expand Down
1 change: 1 addition & 0 deletions fastapi_keycloak_middleware/fast_api_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
It is mainly used if the user does not provide a custom function to retrieve
the user based on the token claims
"""

from starlette.authentication import BaseUser


Expand Down
1 change: 1 addition & 0 deletions fastapi_keycloak_middleware/keycloak_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
It is used by the middleware to perform the actual authentication.
"""

import logging
import typing
from typing import Tuple
Expand Down
1 change: 1 addition & 0 deletions fastapi_keycloak_middleware/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
It is inspired by the fastapi-auth-middleware package published
here: https://github.com/code-specialist/fastapi-auth-middleware
"""

import logging
import re
import typing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module contains the schema to configure Keycloak.
"""

from typing import Dict, Optional, Union

from pydantic import BaseModel, Field
Expand Down

0 comments on commit 729cef8

Please sign in to comment.