Skip to content
Snippets Groups Projects
Verified Commit 74907fed authored by Yoann Schneider's avatar Yoann Schneider :tennis:
Browse files

Introduce UP012

parent 093b948c
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ class MockedJob:
@classmethod
def key_for(cls, id):
return f"rq:job:{id}".encode("utf-8")
return f"rq:job:{id}".encode()
class TestJobs(FixtureAPITestCase):
......
......@@ -27,6 +27,8 @@ select = [
"ERA",
# useless-object-inheritance
"UP004",
# unnecessary-encode-utf8
"UP012",
]
ignore = ["E501", "RET502", "RET503"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment