Skip to content

Commit

Permalink
fix lint issue, add on:pull_request in CI to handle PR created on github
Browse files Browse the repository at this point in the history
Signed-off-by: Rafał Safin <[email protected]>
  • Loading branch information
Rafał Safin committed May 23, 2024
1 parent ea9a261 commit 5b51e5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
- "**"
tags-ignore:
- "*.*"
pull_request:
types: [opened, reopened]

jobs:
tests:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/type_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
- "**"
tags-ignore:
- "*.*"
pull_request:
types: [opened, reopened]

jobs:
type_check:
Expand Down
3 changes: 2 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=["*"],
Expand Down

0 comments on commit 5b51e5d

Please sign in to comment.