Browse Source
♻ Move project source files to top level from src, update Sentry dependency (#630)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
pull/13907/head
Esteban Maya
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
248 changed files with
4 additions and
6 deletions
-
.copier/.copier-answers.yml.jinja
-
.copier/update_dotenv.py
-
.env
-
.github/workflows/test.yml
-
backend/.dockerignore
-
backend/.gitignore
-
backend/alembic.ini
-
backend/app/__init__.py
-
backend/app/alembic/README
-
backend/app/alembic/env.py
-
backend/app/alembic/script.py.mako
-
backend/app/alembic/versions/.keep
-
backend/app/alembic/versions/e2412789c190_initialize_models.py
-
backend/app/api/__init__.py
-
backend/app/api/deps.py
-
backend/app/api/main.py
-
backend/app/api/routes/__init__.py
-
backend/app/api/routes/items.py
-
backend/app/api/routes/login.py
-
backend/app/api/routes/users.py
-
backend/app/api/routes/utils.py
-
backend/app/backend_pre_start.py
-
backend/app/celeryworker_pre_start.py
-
backend/app/core/__init__.py
-
backend/app/core/celery_app.py
-
backend/app/core/config.py
-
backend/app/core/db.py
-
backend/app/core/security.py
-
backend/app/crud.py
-
backend/app/email-templates/build/new_account.html
-
backend/app/email-templates/build/reset_password.html
-
backend/app/email-templates/build/test_email.html
-
backend/app/email-templates/src/new_account.mjml
-
backend/app/email-templates/src/reset_password.mjml
-
backend/app/email-templates/src/test_email.mjml
-
backend/app/initial_data.py
-
backend/app/main.py
-
backend/app/models.py
-
backend/app/schemas/__init__.py
-
backend/app/schemas/item.py
-
backend/app/schemas/msg.py
-
backend/app/schemas/token.py
-
backend/app/schemas/user.py
-
backend/app/tests/__init__.py
-
backend/app/tests/api/__init__.py
-
backend/app/tests/api/api_v1/__init__.py
-
backend/app/tests/api/api_v1/test_celery.py
-
backend/app/tests/api/api_v1/test_items.py
-
backend/app/tests/api/api_v1/test_login.py
-
backend/app/tests/api/api_v1/test_users.py
-
backend/app/tests/conftest.py
-
backend/app/tests/crud/__init__.py
-
backend/app/tests/crud/test_user.py
-
backend/app/tests/utils/__init__.py
-
backend/app/tests/utils/item.py
-
backend/app/tests/utils/user.py
-
backend/app/tests/utils/utils.py
-
backend/app/tests_pre_start.py
-
backend/app/utils.py
-
backend/app/worker.py
-
backend/backend.dockerfile
-
backend/celeryworker.dockerfile
-
backend/prestart.sh
-
backend/pyproject.toml
-
backend/scripts/format-imports.sh
-
backend/scripts/format.sh
-
backend/scripts/lint.sh
-
backend/scripts/test-cov-html.sh
-
backend/scripts/test.sh
-
backend/tests-start.sh
-
backend/worker-start.sh
-
copier.yml
-
docker-compose.override.yml
-
docker-compose.yml
-
frontend/.dockerignore
-
frontend/.env
-
frontend/.gitignore
-
frontend/.nvmrc
-
frontend/Dockerfile
-
frontend/README.md
-
frontend/babel.config.js
-
frontend/nginx-backend-not-found.conf
-
frontend/nginx.conf
-
frontend/package.json
-
frontend/public/favicon.ico
-
frontend/public/img/icons/android-chrome-192x192.png
-
frontend/public/img/icons/android-chrome-512x512.png
-
frontend/public/img/icons/apple-touch-icon-120x120.png
-
frontend/public/img/icons/apple-touch-icon-152x152.png
-
frontend/public/img/icons/apple-touch-icon-180x180.png
-
frontend/public/img/icons/apple-touch-icon-60x60.png
-
frontend/public/img/icons/apple-touch-icon-76x76.png
-
frontend/public/img/icons/apple-touch-icon.png
-
frontend/public/img/icons/favicon-16x16.png
-
frontend/public/img/icons/favicon-32x32.png
-
frontend/public/img/icons/msapplication-icon-144x144.png
-
frontend/public/img/icons/mstile-150x150.png
-
frontend/public/img/icons/safari-pinned-tab.svg
-
frontend/public/index.html
-
frontend/public/manifest.json
|
|
@ -13,9 +13,6 @@ jobs: |
|
|
|
|
|
|
|
test: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
defaults: |
|
|
|
run: |
|
|
|
working-directory: src |
|
|
|
steps: |
|
|
|
- name: Checkout |
|
|
|
uses: actions/checkout@v4 |
|
|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
from .item import Item, ItemCreate, ItemInDB, ItemUpdate |
|
|
|
from .msg import Msg |
|
|
|
from .token import Token, TokenPayload |
|
|
|
from .user import User, UserCreate, UserInDB, UserUpdate |
|
|
|
from .user import User, UserCreate, UserInDB, UserUpdate |
|
|
@ -1,9 +1,9 @@ |
|
|
|
from raven import Client |
|
|
|
import sentry_sdk |
|
|
|
|
|
|
|
from app.core.celery_app import celery_app |
|
|
|
from app.core.config import settings |
|
|
|
|
|
|
|
client_sentry = Client(settings.SENTRY_DSN) |
|
|
|
sentry_sdk.init(dsn=settings.SENTRY_DSN) |
|
|
|
|
|
|
|
|
|
|
|
@celery_app.task(acks_late=True) |
|
|
@ -26,6 +26,7 @@ sqlmodel = "^0.0.16" |
|
|
|
# Pin bcrypt until passlib supports the latest |
|
|
|
bcrypt = "4.0.1" |
|
|
|
pydantic-settings = "^2.2.1" |
|
|
|
sentry-sdk = {extras = ["fastapi"], version = "^1.40.6"} |
|
|
|
|
|
|
|
[tool.poetry.group.dev.dependencies] |
|
|
|
pytest = "^7.4.3" |
Width:
|
Height:
|
Size: 1.1 KiB
Width:
|
Height:
|
Size: 1.1 KiB
|
Width:
|
Height:
|
Size: 9.2 KiB
Width:
|
Height:
|
Size: 9.2 KiB
|
Width:
|
Height:
|
Size: 29 KiB
Width:
|
Height:
|
Size: 29 KiB
|
Width:
|
Height:
|
Size: 3.3 KiB
Width:
|
Height:
|
Size: 3.3 KiB
|
Width:
|
Height:
|
Size: 4.0 KiB
Width:
|
Height:
|
Size: 4.0 KiB
|
Width:
|
Height:
|
Size: 4.6 KiB
Width:
|
Height:
|
Size: 4.6 KiB
|
Width:
|
Height:
|
Size: 1.5 KiB
Width:
|
Height:
|
Size: 1.5 KiB
|
Width:
|
Height:
|
Size: 1.8 KiB
Width:
|
Height:
|
Size: 1.8 KiB
|
Width:
|
Height:
|
Size: 4.6 KiB
Width:
|
Height:
|
Size: 4.6 KiB
|
Width:
|
Height:
|
Size: 799 B
Width:
|
Height:
|
Size: 799 B
|
Width:
|
Height:
|
Size: 1.2 KiB
Width:
|
Height:
|
Size: 1.2 KiB
|
Width:
|
Height:
|
Size: 1.1 KiB
Width:
|
Height:
|
Size: 1.1 KiB
|
Width:
|
Height:
|
Size: 4.2 KiB
Width:
|
Height:
|
Size: 4.2 KiB
|
Width:
|
Height:
|
Size: 10 KiB
Width:
|
Height:
|
Size: 10 KiB
|