Skip to content

Commit

Permalink
Merge pull request #35 from galileo-press/feature/flake8-config
Browse files Browse the repository at this point in the history
Add flake8 config and fix a few issues found by it
  • Loading branch information
sibson authored Aug 9, 2016
2 parents 93fc837 + e3f2f52 commit 33d24e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions redbeat/schedulers.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from celery.beat import Scheduler, ScheduleEntry
from celery.utils.log import get_logger
from celery.signals import beat_init
from celery.utils.timeutils import humanize_seconds, maybe_make_aware
from celery.utils.timeutils import humanize_seconds
from celery.app import app_or_default

from redis.client import StrictRedis
Expand Down Expand Up @@ -80,7 +80,6 @@ def from_key(key, app=None):
if not definition:
raise KeyError(key)


entry = RedBeatSchedulerEntry(app=app, **definition)
meta = json.loads(data.get(b'meta', b'{}').decode('utf-8'), cls=RedBeatJSONDecoder)
entry.last_run_at = meta.get('last_run_at', datetime.min)
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[metadata]
description-file = README.md

[flake8]
max-line-length: 100
2 changes: 1 addition & 1 deletion tests/test_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from basecase import RedBeatCase

from redbeat import RedBeatSchedulerEntry
from redbeat.decoder import RedBeatJSONDecoder, RedBeatJSONEncoder
from redbeat.decoder import RedBeatJSONDecoder
from redbeat.schedulers import to_timestamp, from_timestamp


Expand Down

0 comments on commit 33d24e6

Please sign in to comment.