From 114182bb90f8e2965d3dbd50bce47f0dcea16665 Mon Sep 17 00:00:00 2001 From: Yoann Schneider <yschneider@teklia.com> Date: Fri, 12 Apr 2024 19:11:50 +0200 Subject: [PATCH] Comply with RET501 --- arkindex/project/serializer_fields.py | 2 +- ruff.toml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arkindex/project/serializer_fields.py b/arkindex/project/serializer_fields.py index 230bafd373..06245b86fc 100644 --- a/arkindex/project/serializer_fields.py +++ b/arkindex/project/serializer_fields.py @@ -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 diff --git a/ruff.toml b/ruff.toml index 622b1a91e3..073e291f27 100644 --- a/ruff.toml +++ b/ruff.toml @@ -8,5 +8,7 @@ quote-style = "double" select = ["Q0", "F", "W", "E", # request-without-timeout "S113", + # flake8-return: unnecessary-return-none + "RET501", ] ignore = ["E501"] -- GitLab