This repository was archived by the owner on Apr 26, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -352,9 +352,10 @@ def _decode_id_token(
352
352
):
353
353
raise FiefIdTokenInvalid ()
354
354
355
- return claims
356
355
except (jwt .JWException , TypeError ) as e :
357
356
raise FiefIdTokenInvalid () from e
357
+ else :
358
+ return claims
358
359
359
360
def _get_openid_configuration_request (self , client : HTTPXClient ) -> httpx .Request :
360
361
return client .build_request ("GET" , "/.well-known/openid-configuration" )
Original file line number Diff line number Diff line change @@ -252,8 +252,8 @@ def authorize(
252
252
253
253
try :
254
254
code = code_queue .get (block = False )
255
- except queue .Empty :
256
- raise FiefAuthAuthorizationCodeMissingError ()
255
+ except queue .Empty as e :
256
+ raise FiefAuthAuthorizationCodeMissingError () from e
257
257
258
258
spinner .text = "Getting a token..."
259
259
Original file line number Diff line number Diff line change 1
- [tool .isort ]
2
- profile = " black"
3
-
4
1
[[tool .mypy .overrides ]]
5
2
module = " jwcrypto.*"
6
3
ignore_missing_imports = true
@@ -11,7 +8,7 @@ ignore_missing_imports = true
11
8
12
9
[tool .ruff ]
13
10
target-version = " py38"
14
- extend-select = [" I" , " UP" ]
11
+ extend-select = [" I" , " UP" , " TRY " ]
15
12
ignore = [" E501" ]
16
13
per-file-ignores = {"tests/test_init.py" = [" F401" ]}
17
14
@@ -38,7 +35,6 @@ features = [
38
35
" cli" ,
39
36
]
40
37
dependencies = [
41
- " black" ,
42
38
" coverage[toml]" ,
43
39
" greenlet" ,
44
40
" mypy" ,
@@ -48,7 +44,6 @@ dependencies = [
48
44
" pytest-mock" ,
49
45
" respx" ,
50
46
" ruff" ,
51
- " tryceratops" ,
52
47
" uvicorn[standard]" ,
53
48
]
54
49
@@ -61,12 +56,12 @@ dependencies = [
61
56
test = " pytest --cov fief_client/ --cov-report=term-missing"
62
57
test-cov-xml = " pytest --cov fief_client/ --cov-report=xml"
63
58
lint = [
64
- " black . " ,
59
+ " ruff format . " ,
65
60
" ruff --fix ." ,
66
61
" mypy fief_client/" ,
67
62
]
68
63
lint-check = [
69
- " black --check ." ,
64
+ " ruff format --check ." ,
70
65
" ruff ." ,
71
66
" mypy fief_client/" ,
72
67
]
You can’t perform that action at this time.
0 commit comments