Skip to content

Commit

Permalink
various cleanup and prospector fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpetrucciani committed Aug 21, 2019
1 parent 2fa1c77 commit 298252b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .prospector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pylint:
max-branches: 50
max-statements: 180
max-parents: 10
max-attributes: 10
max-attributes: 22
min-public-methods: 0
max-public-methods: 20
max-module-lines: 2000
Expand Down Expand Up @@ -76,3 +76,4 @@ pep257:
- D401
- D404
- D403
- D415
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Basic Usage
import qoo
# list SQS queue names
qoo.list()
qoo.list_queues()
# get an existing queue
queue = qoo.get("$QUEUE_NAME")
Expand Down
2 changes: 1 addition & 1 deletion qoo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get(queue_name: str, **kwargs) -> Queue:
return Queue(queue_name, **kwargs)


def list(region: str = "", verbose: bool = False) -> List[str]:
def list_queues(region: str = "", verbose: bool = False) -> List[str]:
"""
list all queues in the default or given region
:note: this will only list up to 1000 queue names
Expand Down
4 changes: 2 additions & 2 deletions qoo/queues.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from typing import Dict, List, Optional


class Job(object):
class Job:
"""a single unit of work"""

def __init__(self, sqs_message: dict, queue: "Queue") -> None:
Expand Down Expand Up @@ -53,7 +53,7 @@ def md5_matches(self) -> bool:
return self._md5 == checksum


class Queue(object):
class Queue:
"""sqs queue"""

def __init__(
Expand Down
2 changes: 1 addition & 1 deletion qoo/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from time import sleep


class Worker(object):
class Worker:
"""worker class"""

def __init__(self, queues):
Expand Down

0 comments on commit 298252b

Please sign in to comment.