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
20 changes: 8 additions & 12 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,14 @@ RUN git config --system init.defaultBranch main
RUN git config --system core.autocrlf input
RUN git config --system color.ui auto

# Ensure vscode user owns the workspace directory
RUN chown -R $USERNAME:$USERNAME /workspace
# Install python dev dependencies
COPY pyproject.toml /workspace/pyproject.toml
RUN pip install --upgrade pip
RUN pip install -e ".[dev]"

# Install Backend Dependencies
COPY backend/pyproject.toml /workspace/backend/pyproject.toml
RUN pip install -e /workspace/backend

# Configure zsh
USER $USERNAME
Expand All @@ -74,16 +80,6 @@ RUN curl https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.
# Set Locale for Functional Autocompletion in zsh
RUN sudo locale-gen en_US.UTF-8

# Install python dev dependencies
COPY pyproject.toml /workspace/pyproject.toml
RUN pip install --upgrade pip
RUN pip install -e ".[dev]"

# Install Backend Dependencies
COPY backend/requirements.txt /workspace/backend/requirements.txt
WORKDIR /workspace/backend
RUN pip install -r requirements.txt

# Expose application ports
EXPOSE 8000 3000

Expand Down
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"ms-python.vscode-pylance",
"charliermarsh.ruff",
"gruntfuggly.todo-tree",
"ms-azuretools.vscode-docker"
"ms-azuretools.vscode-docker",
"github.vscode-github-actions"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/backend-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
with:
python-version: "3.12"
cache: "pip"
cache-dependency-path: "backend/requirements.txt"
cache-dependency-path: "backend/pyproject.toml"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r backend/requirements.txt
pip install -e backend/

- name: Run pytest
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ venv/
ENV/
*.sqlite3
.pytest_cache/
.ruff_cache/
*.egg-info/
.eggs/

# OS/Editor
.DS_Store
Expand Down
28 changes: 28 additions & 0 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[project]
name = "party-registration-backend"
version = "0.1.0"
requires-python = ">=3.12"
dependencies = [
"fastapi[standard]~=0.128.0",
"uvicorn~=0.40.0",
"sqlalchemy[asyncio]~=2.0.0",
"pydantic-settings~=2.12.0",
"asyncpg~=0.31.0",
"psycopg2-binary~=2.9.0",
"bcrypt~=5.0.0",
"pytest~=9.0.0",
"pytest-asyncio~=1.3.0",
"aiosqlite~=0.22.0",
"googlemaps~=4.10.0",
]

[tool.pytest.ini_options]
pythonpath = "."
testpaths = ["test"]
python_files = "*_test.py"
python_classes = "Test*"
python_functions = "test_*"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
asyncio_default_test_loop_scope = "session"
addopts = "--color=yes"
10 changes: 0 additions & 10 deletions backend/pytest.ini

This file was deleted.

11 changes: 0 additions & 11 deletions backend/requirements.txt

This file was deleted.

Loading