Skip to content

Commit 6f967d8

Browse files
committed
Use ruff instead of black/isort for autoformatting
1 parent bb89e0a commit 6f967d8

File tree

125 files changed

+362
-669
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+362
-669
lines changed

.isort.cfg

Lines changed: 0 additions & 19 deletions
This file was deleted.

dev-requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
pylint==3.0.2
22
flake8==6.1.0
3-
isort==5.12.0
4-
black==22.3.0
53
httpretty==1.1.4
64
mypy==0.982
75
sphinx==7.1.2
@@ -19,3 +17,4 @@ asgiref==3.7.2
1917
psutil==5.9.6
2018
GitPython==3.1.41
2119
flaky==3.7.0
20+
ruff==0.3.4

docs/conf.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,7 @@
169169
.. |SCM_WEB| replace:: {s}
170170
.. |SCM_RAW_WEB| replace:: {sr}
171171
.. |SCM_BRANCH| replace:: {b}
172-
""".format(
173-
s=scm_web, sr=scm_raw_web, b=branch
174-
)
172+
""".format(s=scm_web, sr=scm_raw_web, b=branch)
175173

176174
# used to have links to repo files
177175
extlinks = {

docs/examples/auto-instrumentation/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
assert len(argv) == 2
3636

3737
with tracer.start_as_current_span("client"):
38-
3938
with tracer.start_as_current_span("client-server"):
4039
headers = {}
4140
inject(headers)

docs/examples/django/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333

3434

3535
with tracer.start_as_current_span("client"):
36-
3736
with tracer.start_as_current_span("client-server"):
3837
headers = {}
3938
inject(headers)

docs/examples/django/instrumentation_example/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
1. Import the include() function: from django.urls import include, path
2727
2. Add a URL to urlpatterns: path("blog/", include("blog.urls"))
2828
"""
29+
2930
from django.contrib import admin
3031
from django.urls import include, path
3132

docs/examples/django/manage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# limitations under the License.
1515

1616
"""Django"s command-line utility for administrative tasks."""
17+
1718
import os
1819
import sys
1920

docs/examples/error_handler/error_handler_0/src/error_handler_0/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@
2121

2222
class ErrorHandler0(ErrorHandler, ZeroDivisionError):
2323
def _handle(self, error: Exception, *args, **kwargs):
24-
2524
logger.exception("ErrorHandler0 handling a ZeroDivisionError")

docs/examples/error_handler/error_handler_1/src/error_handler_1/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
# pylint: disable=too-many-ancestors
2323
class ErrorHandler1(ErrorHandler, IndexError, KeyError):
2424
def _handle(self, error: Exception, *args, **kwargs):
25-
2625
if isinstance(error, IndexError):
2726
logger.exception("ErrorHandler1 handling an IndexError")
2827

docs/examples/opentracing/rediscache.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def __call__(self, func):
3030
@wraps(func)
3131
def inner(*args, **kwargs):
3232
with self.tracer.start_active_span("Caching decorator") as scope1:
33-
3433
# Pickle the call args to get a canonical key. Don't do this in
3534
# prod!
3635
key = pickle.dumps((func.__qualname__, args, kwargs))

0 commit comments

Comments
 (0)