From 0af060dabbaa53abc85d9eb29880f2649933994e Mon Sep 17 00:00:00 2001 From: Alan Date: Thu, 25 Jan 2024 12:28:00 +0300 Subject: [PATCH] ruff --- .github/workflows/lint.yaml | 1 + app/api/fastapp.py | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 7bfccf5..640724e 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -9,6 +9,7 @@ jobs: - uses: actions/setup-python@v2 - run: pip install ruff - run: | + ruff check . ruff fix . ruff format . - uses: stefanzweifel/git-auto-commit-action@v4 diff --git a/app/api/fastapp.py b/app/api/fastapp.py index f46a166..93779a8 100644 --- a/app/api/fastapp.py +++ b/app/api/fastapp.py @@ -79,10 +79,6 @@ async def startup_event(): app.include_router(api_v1) app.mount("/api", api_v1) -import os -print(os.getcwd()) -print(os.listdir("../")) -# print(os.listdir("")) -# print(os.listdir("./frontend/factory/dist")) + app.mount("/", StaticFiles(directory="../frontend/factory/dist", html=True), name="static")