Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/ci_backend_lint_and_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
cache-dependency-path: '**/poetry.lock'
- name: Install dependencies
run: |
cd backend && poetry install --no-interaction --no-root --with dev
cd backend && poetry install --no-interaction --no-root --with test

- name: Code formatting check with Black
run: |
Expand Down
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ USER app

FROM base AS local
RUN apt-get update && apt-get install procps -y # for pkill
RUN POETRY_VIRTUALENVS_CREATE=false poetry install --with dev
RUN POETRY_VIRTUALENVS_CREATE=false poetry install --with test,dev
USER app
50 changes: 25 additions & 25 deletions backend/poetry.lock

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

24 changes: 8 additions & 16 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,21 @@ flower = "^2.0.1" # 2.0.0 !
llama-index-llms-nvidia = "^0.3.1"
django-anymail = {extras = ["amazon-ses"], version = "^12.0"}

[tool.poetry.group.dev.dependencies]
# OpenAPI
argh = "^0.31.2"

[tool.poetry.group.test.dependencies]

# test dependencies
black = "^24.10.0"
flake8 = "^7.1.1"
pytest = "^8.3.4"
pytest-cov = "^6.0.0"
pytest-django = "^4.8.2"

# factory
factory-boy = "^3.3.0"
faker = "^33.3.1"

[tool.poetry.group.dev.dependencies]

# dev dependencies
django-debug-toolbar = "^5.0.0"
Expand All @@ -80,20 +84,8 @@ ipython = "^8.31.0"
# jupyter's dependency on argon2-cffi can't be installed on Apple M1
# jupyter = { version = "^1.0.0", markers = "platform_machine == 'x86_64'" }
jupyter = "^1.1.1"

# OpenAPI
pyyaml = "^6.0.1"
argh = "^0.31.2"

# faker
faker = "^33.3.1"

# django-silk
django-silk = "^5.3.0"

# pyparsing
# poetry 1.0.0 requires pyparsing<3.0,>=2.2 but packaging tries to install a 3.0.6 which is not compatible
pyparsing = "^3.2.1" # 3.2.1
pyparsing = "^3.2.1"

[build-system]
requires = ["poetry-core>=2.0.1"]
Expand Down
Loading