-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce "black" code formatter to the repo #262
Conversation
@@ -31,7 +29,7 @@ def skip_to(start, tokens, value_sequence): | |||
break | |||
else: | |||
# Match | |||
return tokens[start:i + len(value_sequence)] | |||
return tokens[start : i + len(value_sequence)] |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
return ( | ||
(not django_settings.DEBUG or client.config.debug) | ||
and middleware | ||
and "elasticapm.contrib.django.middleware.TracingMiddleware" in middleware |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
middleware and 'elasticapm.contrib.django.middleware.TracingMiddleware' in middleware) | ||
return ( | ||
(not django_settings.DEBUG or client.config.debug) | ||
and middleware |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
post_context = [line.strip('\r\n') for line in source[(lineno + 1):upper_bound + 1]] | ||
pre_context = [line.strip("\r\n") for line in source[lower_bound:lineno]] | ||
context_line = source[lineno].strip("\r\n") | ||
post_context = [line.strip("\r\n") for line in source[(lineno + 1) : upper_bound + 1]] |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
[l.strip('\r\n') for l in lines[offset + 1:]] if len(lines) > offset else [] | ||
[l.strip("\r\n") for l in lines[0:offset]], | ||
lines[offset].strip("\r\n"), | ||
[l.strip("\r\n") for l in lines[offset + 1 :]] if len(lines) > offset else [], |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
af91982
to
0e1a94a
Compare
…nt with pep8 Signed-off-by: Benjamin Wohlwend <beni@elastic.co>
Signed-off-by: Benjamin Wohlwend <beni@elastic.co>
Signed-off-by: Benjamin Wohlwend <beni@elastic.co>
Signed-off-by: Benjamin Wohlwend <beni@elastic.co>
Signed-off-by: Benjamin Wohlwend <beni@elastic.co>
merged in a83e3b6 |
pyproject.toml
with exclude forwrapt
, and line length of 120pre-commit
configisort
configuration to make it compatible with blackCONTRIBUTING.md
about use of blackblack . --diff
is empty