Skip to content

Commit 8c631f1

Browse files
committed
isort, black
1 parent c638e25 commit 8c631f1

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

examples/demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33

44
import taskbadger as tb
5-
from examples.migration_utils import prepare_migration, get_total, get_data_chunks, process_chunk
5+
from examples.migration_utils import get_data_chunks, get_total, prepare_migration, process_chunk
66
from taskbadger import EmailIntegration
77

88

examples/migration_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ def prepare_migration():
77

88

99
def get_total(context):
10-
context['total'] = random.randint(100, 1000)
11-
return context['total']
10+
context["total"] = random.randint(100, 1000)
11+
return context["total"]
1212

1313

1414
def get_data_chunks(context):
1515
chunks = random.randint(5, 10)
16-
chunk_size = context['total'] // chunks
17-
remainder = context['total'] - (chunks * chunk_size)
16+
chunk_size = context["total"] // chunks
17+
remainder = context["total"] - (chunks * chunk_size)
1818
for i in range(chunks):
1919
yield [1] * chunk_size
2020

0 commit comments

Comments
 (0)