File tree Expand file tree Collapse file tree 3 files changed +25
-19
lines changed Expand file tree Collapse file tree 3 files changed +25
-19
lines changed Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/PyCQA/flake8
3
- rev : 6 .0.0
3
+ rev : 7 .0.0
4
4
hooks :
5
5
- id : flake8
6
6
- repo : https://github.com/psf/black
7
- rev : 23.3 .0
7
+ rev : 24.2 .0
8
8
hooks :
9
9
- id : black
10
10
- repo : https://github.com/PyCQA/bandit
11
- rev : 1.7.5
11
+ rev : 1.7.7
12
12
hooks :
13
13
- id : bandit
14
14
exclude : ^tests/
15
15
- repo : https://github.com/pre-commit/mirrors-mypy
16
- rev : v1.4.1
16
+ rev : v1.8.0
17
17
hooks :
18
18
- id : mypy
19
19
files : ^fido2/
Original file line number Diff line number Diff line change @@ -109,9 +109,11 @@ def _wrap_credentials(
109
109
if creds is None :
110
110
return None
111
111
return [
112
- to_descriptor (c )
113
- if isinstance (c , AttestedCredentialData )
114
- else PublicKeyCredentialDescriptor .from_dict (c )
112
+ (
113
+ to_descriptor (c )
114
+ if isinstance (c , AttestedCredentialData )
115
+ else PublicKeyCredentialDescriptor .from_dict (c )
116
+ )
115
117
for c in creds
116
118
]
117
119
@@ -198,19 +200,21 @@ def register_begin(
198
200
self .allowed_algorithms ,
199
201
self .timeout ,
200
202
descriptors ,
201
- AuthenticatorSelectionCriteria (
202
- authenticator_attachment ,
203
- resident_key_requirement ,
204
- user_verification ,
205
- )
206
- if any (
207
- (
203
+ (
204
+ AuthenticatorSelectionCriteria (
208
205
authenticator_attachment ,
209
206
resident_key_requirement ,
210
207
user_verification ,
211
208
)
212
- )
213
- else None ,
209
+ if any (
210
+ (
211
+ authenticator_attachment ,
212
+ resident_key_requirement ,
213
+ user_verification ,
214
+ )
215
+ )
216
+ else None
217
+ ),
214
218
self .attestation ,
215
219
extensions ,
216
220
)
Original file line number Diff line number Diff line change @@ -516,9 +516,11 @@ def __post_init__(self):
516
516
object .__setattr__ (
517
517
self ,
518
518
"resident_key" ,
519
- ResidentKeyRequirement .REQUIRED
520
- if self .require_resident_key
521
- else ResidentKeyRequirement .DISCOURAGED ,
519
+ (
520
+ ResidentKeyRequirement .REQUIRED
521
+ if self .require_resident_key
522
+ else ResidentKeyRequirement .DISCOURAGED
523
+ ),
522
524
)
523
525
object .__setattr__ (
524
526
self ,
You can’t perform that action at this time.
0 commit comments