Skip to content

Commit 1e797fc

Browse files
authored
Merge branch 'main' into main
2 parents 6424064 + 7d048df commit 1e797fc

16 files changed

+450
-35
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "Conflict detector"
2+
on:
3+
push:
4+
pull_request_target:
5+
types: [synchronize]
6+
7+
jobs:
8+
main:
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check if PRs have merge conflicts
15+
uses: eps1lon/actions-label-merge-conflict@v3
16+
with:
17+
dirtyLabel: "conflicts"
18+
repoToken: "${{ secrets.GITHUB_TOKEN }}"
19+
commentOnDirty: "This pull request has a merge conflict that needs to be resolved."

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
pull-requests: write
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/labeler@v5
19+
- uses: actions/labeler@v6
2020
if: ${{ github.event.action != 'labeled' && github.event.action != 'unlabeled' }}
2121
- run: echo "Done adding labels"
2222
# Run this after labeler applied labels

.github/workflows/latest-changes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
env:
2525
GITHUB_CONTEXT: ${{ toJson(github) }}
2626
run: echo "$GITHUB_CONTEXT"
27-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@v5
2828
with:
2929
# To allow latest-changes to commit to the main branch
3030
token: ${{ secrets.LATEST_CHANGES }}
@@ -34,7 +34,7 @@ jobs:
3434
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
3535
with:
3636
limit-access-to-actor: true
37-
- uses: tiangolo/latest-changes@0.3.2
37+
- uses: tiangolo/latest-changes@0.4.0
3838
with:
3939
token: ${{ secrets.GITHUB_TOKEN }}
4040
latest_changes_file: release-notes.md

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
env:
2121
GITHUB_CONTEXT: ${{ toJson(github) }}
2222
run: echo "$GITHUB_CONTEXT"
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v5
2424
- name: Set up Python
25-
uses: actions/setup-python@v5
25+
uses: actions/setup-python@v6
2626
with:
2727
python-version: "3.10"
2828
# Issue ref: https://github.com/actions/setup-python/issues/436
@@ -35,4 +35,4 @@ jobs:
3535
TIANGOLO_BUILD_PACKAGE: ${{ matrix.package }}
3636
run: python -m build
3737
- name: Publish
38-
uses: pypa/gh-action-pypi-publish@v1.12.4
38+
uses: pypa/gh-action-pypi-publish@v1.13.0

.github/workflows/smokeshow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ jobs:
2020
env:
2121
GITHUB_CONTEXT: ${{ toJson(github) }}
2222
run: echo "$GITHUB_CONTEXT"
23-
- uses: actions/checkout@v4
24-
- uses: actions/setup-python@v5
23+
- uses: actions/checkout@v5
24+
- uses: actions/setup-python@v6
2525
with:
2626
python-version: '3.9'
2727
- name: Setup uv
28-
uses: astral-sh/setup-uv@v5
28+
uses: astral-sh/setup-uv@v6
2929
with:
3030
version: "0.4.15"
3131
enable-cache: true
3232
cache-dependency-glob: |
3333
requirements**.txt
3434
pyproject.toml
3535
- run: uv pip install -r requirements-github-actions.txt
36-
- uses: actions/download-artifact@v4
36+
- uses: actions/download-artifact@v5
3737
with:
3838
name: coverage-html
3939
path: htmlcov

.github/workflows/test-redistribute.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
env:
2323
GITHUB_CONTEXT: ${{ toJson(github) }}
2424
run: echo "$GITHUB_CONTEXT"
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v5
2626
- name: Set up Python
27-
uses: actions/setup-python@v5
27+
uses: actions/setup-python@v6
2828
with:
2929
python-version: "3.10"
3030
# Issue ref: https://github.com/actions/setup-python/issues/436

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ jobs:
4141
env:
4242
GITHUB_CONTEXT: ${{ toJson(github) }}
4343
run: echo "$GITHUB_CONTEXT"
44-
- uses: actions/checkout@v4
44+
- uses: actions/checkout@v5
4545
- name: Set up Python
46-
uses: actions/setup-python@v5
46+
uses: actions/setup-python@v6
4747
with:
4848
python-version: ${{ matrix.python-version }}
4949
- name: Setup uv
50-
uses: astral-sh/setup-uv@v5
50+
uses: astral-sh/setup-uv@v6
5151
with:
5252
version: "0.4.15"
5353
enable-cache: true
@@ -85,20 +85,20 @@ jobs:
8585
env:
8686
GITHUB_CONTEXT: ${{ toJson(github) }}
8787
run: echo "$GITHUB_CONTEXT"
88-
- uses: actions/checkout@v4
89-
- uses: actions/setup-python@v5
88+
- uses: actions/checkout@v5
89+
- uses: actions/setup-python@v6
9090
with:
9191
python-version: '3.8'
9292
- name: Setup uv
93-
uses: astral-sh/setup-uv@v5
93+
uses: astral-sh/setup-uv@v6
9494
with:
9595
version: "0.4.15"
9696
enable-cache: true
9797
cache-dependency-glob: |
9898
requirements**.txt
9999
pyproject.toml
100100
- name: Get coverage files
101-
uses: actions/download-artifact@v4
101+
uses: actions/download-artifact@v5
102102
with:
103103
pattern: coverage-*
104104
path: coverage

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ default_language_version:
44
python: python3.10
55
repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v5.0.0
7+
rev: v6.0.0
88
hooks:
99
- id: check-added-large-files
1010
- id: check-toml
@@ -14,7 +14,7 @@ repos:
1414
- id: end-of-file-fixer
1515
- id: trailing-whitespace
1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.8.4
17+
rev: v0.13.0
1818
hooks:
1919
- id: ruff
2020
args:

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ Repository = "https://github.com/fastapi/fastapi-cli"
5353
Issues = "https://github.com/fastapi/fastapi-cli/issues"
5454
Changelog = "https://github.com/fastapi/fastapi-cli/blob/main/release-notes.md"
5555

56-
[project.scripts]
57-
fastapi = "fastapi_cli.cli:main"
58-
5956
[build-system]
6057
requires = ["pdm-backend"]
6158
build-backend = "pdm.backend"

release-notes.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,79 @@
22

33
## Latest Changes
44

5+
## 0.0.13
6+
7+
### Features
8+
9+
* ✨ Allow to use `-h` for help. PR [#191](https://github.com/fastapi/fastapi-cli/pull/191) by [@patrick91](https://github.com/patrick91).
10+
11+
## 0.0.12
12+
13+
### Features
14+
15+
* ✨ Add support for the PORT environment variable. PR [#209](https://github.com/fastapi/fastapi-cli/pull/209) by [@buurro](https://github.com/buurro).
16+
17+
### Internal
18+
19+
* ⬆ Bump mypy from 1.14.0 to 1.14.1. PR [#207](https://github.com/fastapi/fastapi-cli/pull/207) by [@dependabot[bot]](https://github.com/apps/dependabot).
20+
* ⬆ Bump actions/setup-python from 5 to 6. PR [#201](https://github.com/fastapi/fastapi-cli/pull/201) by [@dependabot[bot]](https://github.com/apps/dependabot).
21+
* ⬆ Bump ruff from 0.12.12 to 0.13.0. PR [#206](https://github.com/fastapi/fastapi-cli/pull/206) by [@dependabot[bot]](https://github.com/apps/dependabot).
22+
*[pre-commit.ci] pre-commit autoupdate. PR [#208](https://github.com/fastapi/fastapi-cli/pull/208) by [@pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci).
23+
*[pre-commit.ci] pre-commit autoupdate. PR [#205](https://github.com/fastapi/fastapi-cli/pull/205) by [@pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci).
24+
25+
## 0.0.11
26+
27+
### Features
28+
29+
* ✨ Add support for passing apps as `fastapi run --entrypoint some.importable_module:app_name`. PR [#199](https://github.com/fastapi/fastapi-cli/pull/199) by [@patrick91](https://github.com/patrick91).
30+
31+
If you have been using Uvicorn like:
32+
33+
```console
34+
$ uvicorn some.importable_module:app_name
35+
```
36+
37+
Now you can use the same "entrypoint" syntax with `fastapi`:
38+
39+
```console
40+
$ fastapi run -e some.importable_module:app_name
41+
```
42+
43+
Or:
44+
45+
```console
46+
$ fastapi run --entrypoint some.importable_module:app_name
47+
```
48+
49+
### Internal
50+
51+
* ⬆ Bump actions/labeler from 5 to 6. PR [#202](https://github.com/fastapi/fastapi-cli/pull/202) by [@dependabot[bot]](https://github.com/apps/dependabot).
52+
* ⬆ Bump ruff from 0.12.11 to 0.12.12. PR [#203](https://github.com/fastapi/fastapi-cli/pull/203) by [@dependabot[bot]](https://github.com/apps/dependabot).
53+
*[pre-commit.ci] pre-commit autoupdate. PR [#198](https://github.com/fastapi/fastapi-cli/pull/198) by [@pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci).
54+
* ⬆ Bump pypa/gh-action-pypi-publish from 1.12.4 to 1.13.0. PR [#200](https://github.com/fastapi/fastapi-cli/pull/200) by [@dependabot[bot]](https://github.com/apps/dependabot).
55+
* 👷 Detect and label merge conflicts on PRs automatically. PR [#204](https://github.com/fastapi/fastapi-cli/pull/204) by [@svlandeg](https://github.com/svlandeg).
56+
57+
## 0.0.10
58+
59+
### Features
60+
61+
* Add CLI option `--forwarded-allow-ips`. PR [#113](https://github.com/fastapi/fastapi-cli/pull/113) by [@Riuzaky77](https://github.com/Riuzaky77).
62+
63+
### Internal
64+
65+
*[pre-commit.ci] pre-commit autoupdate. PR [#147](https://github.com/fastapi/fastapi-cli/pull/147) by [@pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci).
66+
* ⬆ Bump ruff from 0.11.2 to 0.12.11. PR [#196](https://github.com/fastapi/fastapi-cli/pull/196) by [@dependabot[bot]](https://github.com/apps/dependabot).
67+
* ⬆ Bump actions/checkout from 4 to 5. PR [#193](https://github.com/fastapi/fastapi-cli/pull/193) by [@dependabot[bot]](https://github.com/apps/dependabot).
68+
* ⬆ Bump actions/download-artifact from 4 to 5. PR [#190](https://github.com/fastapi/fastapi-cli/pull/190) by [@dependabot[bot]](https://github.com/apps/dependabot).
69+
* ⬆ Bump tiangolo/latest-changes from 0.3.2 to 0.4.0. PR [#188](https://github.com/fastapi/fastapi-cli/pull/188) by [@dependabot[bot]](https://github.com/apps/dependabot).
70+
* ⬆ Bump astral-sh/setup-uv from 5 to 6. PR [#176](https://github.com/fastapi/fastapi-cli/pull/176) by [@dependabot[bot]](https://github.com/apps/dependabot).
71+
72+
## 0.0.9
73+
74+
### Fixes
75+
76+
* 🔧 Remove command script `fastapi`, let it be provided by the `fastapi` package. PR [#197](https://github.com/fastapi/fastapi-cli/pull/197) by [@tiangolo](https://github.com/tiangolo).
77+
578
## 0.0.8
679

780
### Features

0 commit comments

Comments
 (0)