Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix poetry dependencies #11

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conda/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ channels:
dependencies:
- celery
- flower
- poetry
- python 3.10.*
- pip:
- rabbitmq
Expand Down
7 changes: 7 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]"}
]
license = {text = "MIT License"}
requires-python = ">=3.8"
authors = ["Ivan", "Sandro"]

[tool.bandit]
exclude_dirs = ["tests"]
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/poc_celery/poc1/celery_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in theory src shouldn't be part of the package structure

"src.poc_celery.poc1.tasks_collectors",
],
)

Expand Down
Loading