summaryrefslogtreecommitdiff
path: root/rq/serializers.py
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2023-02-04 01:42:51 +0100
committerGitHub <noreply@github.com>2023-02-04 07:42:51 +0700
commitfdb14df18141b6bedc40d719904f56e64984bc37 (patch)
tree6cd1f009a552cd4e380b6c82fc2a688a3e00e8cb /rq/serializers.py
parentcd62b4cb50f41c95ec4b15ef84656688438c807e (diff)
downloadrq-fdb14df18141b6bedc40d719904f56e64984bc37.tar.gz
Black style (#1292)
* treewide: apply black style This PR applied the black code style, adds it to the CI and README. The changes look big, however no functional changed are applied at all. The line length is set to 120, which is different from black recommendation of 88. I would suggest to stick to the 88 recommendation and adapt the flake8 check. Add the `-S` parameter to `black` to keep single quotes. Signed-off-by: Paul Spooren <mail@aparcar.org> * README: add black badge Help people to find the used code style. Signed-off-by: Paul Spooren <mail@aparcar.org> * CI: check codestyle via black Automatically run the CI and check that the code style is still black. Signed-off-by: Paul Spooren <mail@aparcar.org> --------- Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to 'rq/serializers.py')
-rw-r--r--rq/serializers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rq/serializers.py b/rq/serializers.py
index 9e63bc7..b9b7d9c 100644
--- a/rq/serializers.py
+++ b/rq/serializers.py
@@ -11,7 +11,7 @@ class DefaultSerializer:
loads = pickle.loads
-class JSONSerializer():
+class JSONSerializer:
@staticmethod
def dumps(*args, **kwargs):
return json.dumps(*args, **kwargs).encode('utf-8')
@@ -29,7 +29,7 @@ def resolve_serializer(serializer=None):
Args:
serializer (Callable): The serializer to resolve.
-
+
Returns:
serializer (Callable): An object that implements the SerializerProtocol
"""