Skip to content

Commit 68c8075

Browse files
committed
🔧 Add GitHub Actions workflow for linting
1 parent 7495cd8 commit 68c8075

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

‎.github/workflows/lint.yml‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v5
17+
- name: Set up Python
18+
uses: actions/setup-python@v6
19+
with:
20+
python-version-file: "pyproject.toml"
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v7
23+
- name: Install Dependencies
24+
run: uv sync --locked --all-extras --dev
25+
- name: Lint
26+
run: uv run --no-sync scripts/lint.sh
27+
28+
# https://github.com/marketplace/actions/alls-green#why
29+
lint-alls-green: # This job does nothing and is only used for the branch protection
30+
if: always()
31+
needs:
32+
- lint
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Decide whether the needed jobs succeeded or failed
36+
uses: re-actors/alls-green@release/v1
37+
with:
38+
jobs: ${{ toJSON(needs) }}

‎src/fastapi_cloud_cli/commands/deploy.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def _configure_app(toolkit: RichToolkit, path_to_deploy: Path) -> AppConfig:
295295

296296
toolkit.print_line()
297297

298-
selected_app: AppResponse | None = None
298+
selected_app: Optional[AppResponse] = None
299299

300300
if not create_new_app:
301301
with toolkit.progress("Fetching apps...") as progress:

0 commit comments

Comments
 (0)