Skip to content

Commit 147f430

Browse files
authored
Merge branch 'main' into feat/add-websocket-options
2 parents e9c8aea + e1cc513 commit 147f430

File tree

8 files changed

+99
-6
lines changed

8 files changed

+99
-6
lines changed

.github/labeler.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
docs:
2+
- all:
3+
- changed-files:
4+
- any-glob-to-any-file:
5+
- README.md
6+
- all-globs-to-all-files:
7+
- '!src/**'
8+
- '!pyproject.toml'
9+
10+
internal:
11+
- all:
12+
- changed-files:
13+
- any-glob-to-any-file:
14+
- .github/**
15+
- scripts/**
16+
- .gitignore
17+
- .pre-commit-config.yaml
18+
- pdm_build.py
19+
- requirements*.txt
20+
- all-globs-to-all-files:
21+
- README.md
22+
- '!src/**'
23+
- '!pyproject.toml'
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Add to Project
2+
3+
on:
4+
pull_request_target:
5+
issues:
6+
types:
7+
- opened
8+
- reopened
9+
10+
jobs:
11+
add-to-project:
12+
name: Add to project
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/add-to-project@v1.0.2
16+
with:
17+
project-url: https://github.com/orgs/fastapi/projects/2
18+
github-token: ${{ secrets.PROJECTS_TOKEN }}

.github/workflows/labeler.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Labels
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
- synchronize
7+
- reopened
8+
# For label-checker
9+
- labeled
10+
- unlabeled
11+
12+
jobs:
13+
labeler:
14+
permissions:
15+
contents: read
16+
pull-requests: write
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/labeler@v5
20+
# Run this after labeler applied labels
21+
check-labels:
22+
needs:
23+
- labeler
24+
permissions:
25+
pull-requests: read
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: docker://agilepathway/pull-request-label-checker:latest
29+
with:
30+
one_of: breaking,security,feature,bug,refactor,upgrade,docs,lang-all,internal
31+
repo_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/latest-changes.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +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: docker://tiangolo/latest-changes:0.3.0
38-
# - uses: tiangolo/latest-changes@main
37+
- uses: tiangolo/latest-changes@0.3.1
3938
with:
4039
token: ${{ secrets.GITHUB_TOKEN }}
4140
latest_changes_file: release-notes.md

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
- run: ls -la coverage
100100
- run: coverage combine coverage
101101
- run: coverage report
102-
- run: coverage html --show-contexts --title "Coverage for ${{ github.sha }}"
102+
- run: coverage html --title "Coverage for ${{ github.sha }}"
103103
- name: Store coverage HTML
104104
uses: actions/upload-artifact@v4
105105
with:

pyproject.toml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ standard = [
4242
]
4343

4444
[project.urls]
45-
Documentation = "https://fastapi.tiangolo.com"
46-
homepage = "https://github.com/fastapi/fastapi-cli"
45+
Homepage = "https://github.com/fastapi/fastapi-cli"
46+
Documentation = "https://fastapi.tiangolo.com/fastapi-cli/"
4747
Repository = "https://github.com/fastapi/fastapi-cli"
48+
Issues = "https://github.com/fastapi/fastapi-cli/issues"
49+
Changelog = "https://github.com/fastapi/fastapi-cli/blob/main/release-notes.md"
4850

4951
[project.scripts]
5052
fastapi = "fastapi_cli.cli:main"
@@ -84,18 +86,24 @@ source = [
8486
"tests",
8587
]
8688
context = '${CONTEXT}'
89+
dynamic_context = "test_function"
8790
omit = [
8891
"tests/assets/*",
8992
]
9093

9194
[tool.coverage.report]
95+
show_missing = true
96+
sort = "-Cover"
9297
exclude_lines = [
9398
"pragma: no cover",
9499
"@overload",
95100
'if __name__ == "__main__":',
96101
"if TYPE_CHECKING:",
97102
]
98103

104+
[tool.coverage.html]
105+
show_contexts = true
106+
99107
[tool.mypy]
100108
strict = true
101109
exclude = [

release-notes.md

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

33
## Latest Changes
44

5+
* 👷 Do not sync labels as it overrides manually added labels. PR [#71](https://github.com/fastapi/fastapi-cli/pull/71) by [@tiangolo](https://github.com/tiangolo).
6+
7+
### Internal
8+
9+
* 👷 Update `latest-changes` GitHub Action. PR [#79](https://github.com/fastapi/fastapi-cli/pull/79) by [@tiangolo](https://github.com/tiangolo).
10+
* 🔧 Update coverage configs. PR [#74](https://github.com/fastapi/fastapi-cli/pull/74) by [@tiangolo](https://github.com/tiangolo).
11+
* 🔧 Add URLs to `pyproject.toml`, show up in PyPI. PR [#72](https://github.com/fastapi/fastapi-cli/pull/72) by [@tiangolo](https://github.com/tiangolo).
12+
* 👷 Update GitHub Action labeler to only add one label. PR [#70](https://github.com/fastapi/fastapi-cli/pull/70) by [@tiangolo](https://github.com/tiangolo).
13+
* 👷 Update GitHub Action labeler permissions and dependencies. PR [#69](https://github.com/fastapi/fastapi-cli/pull/69) by [@tiangolo](https://github.com/tiangolo).
14+
* 👷 Add GitHub Action label-checker. PR [#68](https://github.com/fastapi/fastapi-cli/pull/68) by [@tiangolo](https://github.com/tiangolo).
15+
* 👷 Add GitHub Action labeler. PR [#67](https://github.com/fastapi/fastapi-cli/pull/67) by [@tiangolo](https://github.com/tiangolo).
16+
* 🔧 Update GitHub Action add-to-project. PR [#66](https://github.com/fastapi/fastapi-cli/pull/66) by [@tiangolo](https://github.com/tiangolo).
17+
* 👷 Add GitHub Action add-to-project. PR [#65](https://github.com/fastapi/fastapi-cli/pull/65) by [@tiangolo](https://github.com/tiangolo).
18+
519
## 0.0.5
620

721
### Breaking Changes

scripts/test-cov-html.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ set -x
55

66
bash scripts/test.sh ${@}
77
coverage combine
8-
coverage report --show-missing
8+
coverage report
99
coverage html

0 commit comments

Comments
 (0)