Skip to content

Commit

Permalink
compliance with flake8 rules
Browse files Browse the repository at this point in the history
  • Loading branch information
tleveil-mvg committed Jun 11, 2019
1 parent 888cbde commit 38c7406
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions cabot/cabotapp/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,7 @@ def clean_db(days_to_retain=7, batch_size=10000):
InstanceStatusSnapshot.objects.filter(id__in=instance_snapshot_ids).delete()

# If we reached the batch size on either we need to re-queue to continue cleaning up.
if (
result_count == batch_size or
service_snapshot_count == batch_size or
instance_snapshot_count == batch_size
):
if result_count == batch_size or service_snapshot_count == batch_size or instance_snapshot_count == batch_size:
clean_db.apply_async(kwargs={
'days_to_retain': days_to_retain,
'batch_size': batch_size},
Expand Down
2 changes: 1 addition & 1 deletion cabot/cabotapp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ class Meta:
}),
'text_match': forms.TextInput(attrs={
'style': 'width: 100%',
'placeholder': '[Aa]rachnys\s+[Rr]ules',
'placeholder': r'[Aa]rachnys\s+[Rr]ules',
}),
'status_code': forms.TextInput(attrs={
'style': 'width: 20%',
Expand Down
2 changes: 1 addition & 1 deletion cabot/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
COMPRESS_PRECOMPILERS = (
('text/coffeescript', 'coffee --compile --stdio'),
('text/eco',
'eco -i TEMPLATES {infile} && cat "$(echo "{infile}" | sed -e "s/\.eco$/.js/g")"'),
r'eco -i TEMPLATES {infile} && cat "$(echo "{infile}" | sed -e "s/\.eco$/.js/g")"'),
('text/less', 'lessc {infile} > {outfile}'),
)

Expand Down

0 comments on commit 38c7406

Please sign in to comment.