Skip to content

Commit cfbcb35

Browse files
committed
Reformat to match new Black version
1 parent f8df0f0 commit cfbcb35

File tree

6 files changed

+20
-6
lines changed

6 files changed

+20
-6
lines changed

django_dbq/management/commands/queue_depth.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def handle(self, *args, **options):
1616
queue_depths_string = " ".join(
1717
[
1818
"{queue_name}={queue_depth}".format(
19-
queue_name=queue_name, queue_depth=queue_depths.get(queue_name, 0),
19+
queue_name=queue_name,
20+
queue_depth=queue_depths.get(queue_name, 0),
2021
)
2122
for queue_name in queue_names
2223
]

django_dbq/migrations/0001_initial.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ class Migration(migrations.Migration):
4949
models.CharField(db_index=True, max_length=20, default="default"),
5050
),
5151
],
52-
options={"ordering": ["-created"],},
52+
options={
53+
"ordering": ["-created"],
54+
},
5355
),
5456
]

django_dbq/migrations/0002_auto_20151016_1027.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@ class Migration(migrations.Migration):
1111
]
1212

1313
operations = [
14-
migrations.AlterModelOptions(name="job", options={"ordering": ["created"]},),
14+
migrations.AlterModelOptions(
15+
name="job",
16+
options={"ordering": ["created"]},
17+
),
1518
]

django_dbq/migrations/0003_auto_20180713_1000.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ class Migration(migrations.Migration):
1313

1414
operations = [
1515
migrations.AlterModelOptions(
16-
name="job", options={"ordering": ["-priority", "created"]},
16+
name="job",
17+
options={"ordering": ["-priority", "created"]},
1718
),
1819
migrations.AddField(
1920
model_name="job",

django_dbq/migrations/0004_auto_20210818_0247.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class Migration(migrations.Migration):
2727
),
2828
),
2929
migrations.AlterField(
30-
model_name="job", name="workspace", field=models.JSONField(null=True),
30+
model_name="job",
31+
name="workspace",
32+
field=models.JSONField(null=True),
3133
),
3234
]

django_dbq/tests.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,12 @@ def test_queue_depth_multiple_queues(self):
104104

105105
stdout = StringIO()
106106
call_command(
107-
"queue_depth", queue_name=("default", "testqueue",), stdout=stdout,
107+
"queue_depth",
108+
queue_name=(
109+
"default",
110+
"testqueue",
111+
),
112+
stdout=stdout,
108113
)
109114
output = stdout.getvalue()
110115
self.assertEqual(output.strip(), "event=queue_depths default=2 testqueue=2")

0 commit comments

Comments
 (0)