diff --git a/.prospector.yaml b/.prospector.yaml index 83d9a0a..3654edb 100644 --- a/.prospector.yaml +++ b/.prospector.yaml @@ -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 @@ -76,3 +76,4 @@ pep257: - D401 - D404 - D403 + - D415 diff --git a/README.rst b/README.rst index 88bb426..bae2804 100644 --- a/README.rst +++ b/README.rst @@ -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") diff --git a/qoo/__init__.py b/qoo/__init__.py index 34e745b..4de9694 100644 --- a/qoo/__init__.py +++ b/qoo/__init__.py @@ -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 diff --git a/qoo/queues.py b/qoo/queues.py index 11d54e0..46cf305 100644 --- a/qoo/queues.py +++ b/qoo/queues.py @@ -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: @@ -53,7 +53,7 @@ def md5_matches(self) -> bool: return self._md5 == checksum -class Queue(object): +class Queue: """sqs queue""" def __init__( diff --git a/qoo/workers.py b/qoo/workers.py index 57cfb68..5acda19 100644 --- a/qoo/workers.py +++ b/qoo/workers.py @@ -4,7 +4,7 @@ from time import sleep -class Worker(object): +class Worker: """worker class""" def __init__(self, queues):