Skip to content

Commit

Permalink
Reformat to match new Black version
Browse files Browse the repository at this point in the history
  • Loading branch information
j4mie committed Dec 6, 2021
1 parent f8df0f0 commit cfbcb35
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
3 changes: 2 additions & 1 deletion django_dbq/management/commands/queue_depth.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def handle(self, *args, **options):
queue_depths_string = " ".join(
[
"{queue_name}={queue_depth}".format(
queue_name=queue_name, queue_depth=queue_depths.get(queue_name, 0),
queue_name=queue_name,
queue_depth=queue_depths.get(queue_name, 0),
)
for queue_name in queue_names
]
Expand Down
4 changes: 3 additions & 1 deletion django_dbq/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class Migration(migrations.Migration):
models.CharField(db_index=True, max_length=20, default="default"),
),
],
options={"ordering": ["-created"],},
options={
"ordering": ["-created"],
},
),
]
5 changes: 4 additions & 1 deletion django_dbq/migrations/0002_auto_20151016_1027.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ class Migration(migrations.Migration):
]

operations = [
migrations.AlterModelOptions(name="job", options={"ordering": ["created"]},),
migrations.AlterModelOptions(
name="job",
options={"ordering": ["created"]},
),
]
3 changes: 2 additions & 1 deletion django_dbq/migrations/0003_auto_20180713_1000.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class Migration(migrations.Migration):

operations = [
migrations.AlterModelOptions(
name="job", options={"ordering": ["-priority", "created"]},
name="job",
options={"ordering": ["-priority", "created"]},
),
migrations.AddField(
model_name="job",
Expand Down
4 changes: 3 additions & 1 deletion django_dbq/migrations/0004_auto_20210818_0247.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class Migration(migrations.Migration):
),
),
migrations.AlterField(
model_name="job", name="workspace", field=models.JSONField(null=True),
model_name="job",
name="workspace",
field=models.JSONField(null=True),
),
]
7 changes: 6 additions & 1 deletion django_dbq/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,12 @@ def test_queue_depth_multiple_queues(self):

stdout = StringIO()
call_command(
"queue_depth", queue_name=("default", "testqueue",), stdout=stdout,
"queue_depth",
queue_name=(
"default",
"testqueue",
),
stdout=stdout,
)
output = stdout.getvalue()
self.assertEqual(output.strip(), "event=queue_depths default=2 testqueue=2")
Expand Down

0 comments on commit cfbcb35

Please sign in to comment.