Skip to content
Snippets Groups Projects
Commit 114182bb authored by Yoann Schneider's avatar Yoann Schneider :tennis: Committed by Erwan Rouchet
Browse files

Comply with RET501

parent 149110fd
No related branches found
No related tags found
1 merge request!2285Introduce flake8 return
This commit is part of merge request !2285. Comments created here will be created in the context of that merge request.
......@@ -304,4 +304,4 @@ class NullField(serializers.CharField):
def to_internal_value(self, data):
if data is not None:
self.fail("invalid")
return None
return
......@@ -8,5 +8,7 @@ quote-style = "double"
select = ["Q0", "F", "W", "E",
# request-without-timeout
"S113",
# flake8-return: unnecessary-return-none
"RET501",
]
ignore = ["E501"]
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