From 5b51e5d11dc31faabc79ab9832ce19f882a2b00b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Safin?= Date: Thu, 23 May 2024 18:53:26 +0200 Subject: [PATCH] fix lint issue, add on:pull_request in CI to handle PR created on github MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RafaƂ Safin --- .github/workflows/tests.yml | 2 ++ .github/workflows/type_check.yml | 2 ++ app/main.py | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ba62473..ef536ce 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,6 +5,8 @@ on: - "**" tags-ignore: - "*.*" + pull_request: + types: [opened, reopened] jobs: tests: diff --git a/.github/workflows/type_check.yml b/.github/workflows/type_check.yml index ffde1e6..0a23fda 100644 --- a/.github/workflows/type_check.yml +++ b/.github/workflows/type_check.yml @@ -5,6 +5,8 @@ on: - "**" tags-ignore: - "*.*" + pull_request: + types: [opened, reopened] jobs: type_check: diff --git a/app/main.py b/app/main.py index e1b9e1e..ff6d0c1 100644 --- a/app/main.py +++ b/app/main.py @@ -20,7 +20,8 @@ app.add_middleware( CORSMiddleware, allow_origins=[ - str(origin).rstrip("/") for origin in get_settings().security.backend_cors_origins + str(origin).rstrip("/") + for origin in get_settings().security.backend_cors_origins ], allow_credentials=True, allow_methods=["*"],