Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

Commit

Permalink
flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
smn committed Feb 3, 2016
1 parent 726e93a commit a256c09
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion heatherr/checkin/tasks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from heatherr import celery_app
from heatherr.models import SlackAccount
from heatherr.checkin.models import Checkin


@celery_app.task(ignore_result=True)
Expand All @@ -9,6 +8,7 @@ def check_all_checkins():
for slackaccount in slackaccounts:
check_slackaccount_checkins(slackaccount)


def check_slackaccount_checkins(slackaccount):
users = slackaccount.get_users()
requireds = [checkin
Expand All @@ -17,6 +17,7 @@ def check_slackaccount_checkins(slackaccount):
for checkin in requireds:
check_checkin(checkin)


def check_checkin(checkin):
# At this point we need to get more oAuth scopes because incoming
# webhook URLs cannot do private messages.
Expand Down
2 changes: 0 additions & 2 deletions heatherr/checkin/tests/test_commands.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import responses

from heatherr.tests import CommandTestCase
from heatherr.checkin.models import Checkin

Expand Down
1 change: 0 additions & 1 deletion heatherr/checkin/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from django.utils import timezone

import arrow
import responses

from freezegun import freeze_time
Expand Down
1 change: 1 addition & 0 deletions heatherr/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def mock_api_call(self, method, data):
responses.POST, 'https://slack.com/api/%s' % (method,),
json=data)


class CommandTestCase(HeatherrTestCase):

default_user_id = 'user_id'
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
ignore = F403
ignore = F403,E402
exclude = ve,**/migrations/*,local_settings.py

[pytest]
Expand Down

0 comments on commit a256c09

Please sign in to comment.