Skip to content

Commit 7a54950

Browse files
kiblikmtesauro
andauthored
Ruff: Add and autofix B010 (#11953)
Co-authored-by: Matt Tesauro <mtesauro@gmail.com>
1 parent ae3b98e commit 7a54950

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ruff.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ select = [
8585
"FURB",
8686
"DOC202", "DOC403", "DOC502",
8787
"RUF",
88+
"B010",
8889
"B033",
8990
"B905",
9091
]

unittests/test_apply_finding_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def create_post_request(user, path, data):
9999
post_request.user = user
100100
post_request.session = {}
101101
messages = FallbackStorage(post_request)
102-
setattr(post_request, "_messages", messages)
102+
post_request._messages = messages
103103

104104
return post_request
105105

0 commit comments

Comments
 (0)