diff --git a/conda/dev.yaml b/conda/dev.yaml index 5fcf08b..6073ad1 100644 --- a/conda/dev.yaml +++ b/conda/dev.yaml @@ -5,6 +5,7 @@ channels: dependencies: - celery - flower + - poetry - python 3.10.* - pip: - rabbitmq diff --git a/poetry.lock b/poetry.lock new file mode 100644 index 0000000..3aa31f8 --- /dev/null +++ b/poetry.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. +package = [] + +[metadata] +lock-version = "2.0" +python-versions = "*" +content-hash = "115cf985d932e9bf5f540555bbdd75decbb62cac81e399375fc19f6277f8c1d8" diff --git a/pyproject.toml b/pyproject.toml index fc20e47..9f8dc51 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,9 @@ -[project] +[tool.poetry] name = "poc-celery" version = "0.1.0" # semantic-release description = "Celery PoC" readme = "README.md" -authors = [ - {name = "Sandro Loch", email = "esloch@gmail.com"} -] -license = {text = "MIT License"} -requires-python = ">=3.8" +authors = ["Ivan", "Sandro"] [tool.bandit] exclude_dirs = ["tests"] @@ -19,7 +15,7 @@ ignore_decorators = ["@abc.abstractmethod"] ignore_names = [] make_whitelist = true min_confidence = 80 -paths = ["./"] +paths = ["./src"] sort_by_size = true verbose = false diff --git a/src/poc_celery/poc1/celery_app.py b/src/poc_celery/poc1/celery_app.py index ddbc700..756b6fe 100644 --- a/src/poc_celery/poc1/celery_app.py +++ b/src/poc_celery/poc1/celery_app.py @@ -12,8 +12,8 @@ broker=f"amqp://guest:guest@{AMQP_IP}:5672", backend=f"redis://{REDIS_IP}:6379/0", include=[ - "poc_celery.poc1.tasks_async", - "poc_celery.poc1.tasks_collectors", + "src.poc_celery.poc1.tasks_async", + "src.poc_celery.poc1.tasks_collectors", ], )