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: ...@@ -32,7 +32,7 @@ class MockedJob:
@classmethod @classmethod
def key_for(cls, id): def key_for(cls, id):
return f"rq:job:{id}".encode("utf-8") return f"rq:job:{id}".encode()
class TestJobs(FixtureAPITestCase): class TestJobs(FixtureAPITestCase):
......
...@@ -27,6 +27,8 @@ select = [ ...@@ -27,6 +27,8 @@ select = [
"ERA", "ERA",
# useless-object-inheritance # useless-object-inheritance
"UP004", "UP004",
# unnecessary-encode-utf8
"UP012",
] ]
ignore = ["E501", "RET502", "RET503"] 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