Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/DISCUSSION_TEMPLATE/questions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ body:
id: context
attributes:
label: Additional Context
description: Add any additional context information or screenshots you think are useful.
description: Add any additional context information or screenshots you think are useful.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github: [tiangolo]
github: [tiangolo]
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ contact_links:
url: https://github.com/fastapi/fastapi-new/discussions/categories/questions
- name: Feature Request
about: To suggest an idea or ask about a feature, please start with a question saying what you would like to achieve. There might be a way to do it already.
url: https://github.com/fastapi/fastapi-new/discussions/categories/questions
url: https://github.com/fastapi/fastapi-new/discussions/categories/questions
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/privileged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ body:
id: content
attributes:
label: Issue Content
description: Add the content of the issue here.
description: Add the content of the issue here.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ updates:
schedule:
interval: "monthly"
commit-message:
prefix: ⬆
prefix: ⬆
18 changes: 9 additions & 9 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
internal:
- all:
- changed-files:
- any-glob-to-any-file:
- .github/**
- scripts/**
- .gitignore
- .pre-commit-config.yaml
- all-globs-to-all-files:
- '!src/**'
- '!pyproject.toml'
- changed-files:
- any-glob-to-any-file:
- .github/**
- scripts/**
- .gitignore
- .pre-commit-config.yaml
- all-globs-to-all-files:
- "!src/**"
- "!pyproject.toml"
2 changes: 1 addition & 1 deletion .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
- uses: actions/add-to-project@v1.0.2
with:
project-url: https://github.com/orgs/fastapi/projects/2
github-token: ${{ secrets.FASTAPI_PROJECTS_TOKEN }}
github-token: ${{ secrets.FASTAPI_PROJECTS_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/detect-conflicts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
with:
dirtyLabel: conflicts
repoToken: "${{ secrets.GITHUB_TOKEN }}"
commentOnDirty: This pull request has a merge conflict that needs to be resolved.
commentOnDirty: This pull request has a merge conflict that needs to be resolved.
2 changes: 1 addition & 1 deletion .github/workflows/issue-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ jobs:
"delay": 0,
"message": "This was marked as invalid and will be closed now. If this is an error, please provide additional details."
}
}
}
8 changes: 4 additions & 4 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v6
if: ${{ github.event.action != 'labeled' && github.event.action != 'unlabeled' }}
- run: echo "Done adding labels"
- uses: actions/labeler@v6
if: ${{ github.event.action != 'labeled' && github.event.action != 'unlabeled' }}
- run: echo "Done adding labels"
# Run this after labeler applied labels
check-labels:
needs:
Expand All @@ -30,4 +30,4 @@ jobs:
- uses: docker://agilepathway/pull-request-label-checker:latest
with:
one_of: breaking,security,feature,bug,refactor,upgrade,docs,lang-all,internal
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/latest-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ on:
description: PR number
required: true
debug_enabled:
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)"
required: false
default: 'false'
default: "false"

jobs:
latest-changes:
Expand All @@ -38,7 +38,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
latest_changes_file: release-notes.md
latest_changes_header: '## Latest Changes'
end_regex: '^## '
latest_changes_header: "## Latest Changes"
end_regex: "^## "
debug_logs: true
label_header_prefix: '### '
label_header_prefix: "### "
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
run: echo "$GITHUB_CONTEXT"
4 changes: 2 additions & 2 deletions .github/workflows/smokeshow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.13'
python-version: "3.13"
- name: Setup uv
uses: astral-sh/setup-uv@v7
with:
Expand Down Expand Up @@ -59,4 +59,4 @@ jobs:
SMOKESHOW_GITHUB_CONTEXT: coverage
SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
SMOKESHOW_AUTH_KEY: ${{ secrets.SMOKESHOW_AUTH_KEY }}
SMOKESHOW_AUTH_KEY: ${{ secrets.SMOKESHOW_AUTH_KEY }}
4 changes: 2 additions & 2 deletions .github/workflows/test-redistribute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
pip wheel --no-deps fastapi_new*.tar.gz

# https://github.com/marketplace/actions/alls-green#why
test-redistribute-alls-green: # This job does nothing and is only used for the branch protection
test-redistribute-alls-green: # This job does nothing and is only used for the branch protection
if: always()
needs:
- test-redistribute
Expand All @@ -64,4 +64,4 @@ jobs:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
jobs: ${{ toJSON(needs) }}
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ on:
workflow_dispatch:
inputs:
debug_enabled:
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)"
required: false
default: 'false'
default: "false"
schedule:
# cron every week on monday
- cron: "0 0 * * 1"
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.13'
python-version: "3.13"
- name: Setup uv
uses: astral-sh/setup-uv@v7
with:
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
include-hidden-files: true

# https://github.com/marketplace/actions/alls-green#why
alls-green: # This job does nothing and is only used for the branch protection
alls-green: # This job does nothing and is only used for the branch protection
if: always()
needs:
- coverage-combine
Expand All @@ -133,4 +133,4 @@ jobs:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
jobs: ${{ toJSON(needs) }}
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@ htmlcov/
.coverage.*
coverage/
.pytest_cache/
tox/

# Type checking
.mypy_cache/

# Virtual environments
.venv
venv/

# IDE
.vscode/
.idea/

# OS
.DS_Store
Thumbs.db
Thumbs.db
28 changes: 14 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_language_version:
python: python3.10
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-toml
- id: check-yaml
- id: check-added-large-files
- id: check-toml
- id: check-yaml
args:
- --unsafe
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
- --unsafe
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.3
hooks:
- id: ruff
- id: ruff
args:
- --fix
- id: ruff-format
- --fix
- id: ruff-format
ci:
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
autoupdate_commit_msg: ⬆ [pre-commit.ci] pre-commit autoupdate
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
autoupdate_commit_msg: ⬆ [pre-commit.ci] pre-commit autoupdate
19 changes: 19 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"editor.tabSize": 4,
"editor.formatOnSave": true,
"files.exclude": {
"**/__pycache__": true,
"**/.pytest_cache": true,
"**/.DS_Store": true,
"**/.hg": true,
"**/.git": true,
"**/*.pyc": true,
"**/.svn": true,
"**/Thumbs.db": true,
"**/venv": true,
"**/.venv": true,
},
"python.analysis.autoImportCompletions": true,
"python.analysis.completeFunctionParens": true,
"python.analysis.typeCheckingMode": "strict"
}
28 changes: 14 additions & 14 deletions release-notes.md → CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,34 @@

### Internal

* ⬆ Bump actions/checkout from 5 to 6. PR [#16](https://github.com/fastapi/fastapi-new/pull/16) by [@dependabot[bot]](https://github.com/apps/dependabot).
* ⬆ Bump actions/checkout from 5 to 6. PR [#14](https://github.com/fastapi/fastapi-new/pull/14) by [@dependabot[bot]](https://github.com/apps/dependabot).
* 👷 Upgrade `latest-changes` GitHub Action and pin `actions/checkout@v5`. PR [#15](https://github.com/fastapi/fastapi-new/pull/15) by [@svlandeg](https://github.com/svlandeg).
* ⬆ Bump ruff from 0.14.1 to 0.14.3. PR [#7](https://github.com/fastapi/fastapi-new/pull/7) by [@dependabot[bot]](https://github.com/apps/dependabot).
- ⬆ Bump actions/checkout from 5 to 6. PR [#16](https://github.com/fastapi/fastapi-new/pull/16) by [@dependabot[bot]](https://github.com/apps/dependabot).
- ⬆ Bump actions/checkout from 5 to 6. PR [#14](https://github.com/fastapi/fastapi-new/pull/14) by [@dependabot[bot]](https://github.com/apps/dependabot).
- 👷 Upgrade `latest-changes` GitHub Action and pin `actions/checkout@v5`. PR [#15](https://github.com/fastapi/fastapi-new/pull/15) by [@svlandeg](https://github.com/svlandeg).
- ⬆ Bump ruff from 0.14.1 to 0.14.3. PR [#7](https://github.com/fastapi/fastapi-new/pull/7) by [@dependabot[bot]](https://github.com/apps/dependabot).

## 0.0.2

### Features

* ✨ Add implementation of `fastapi-new` CLI, and base for `fastapi new` command. PR [#5](https://github.com/fastapi/fastapi-new/pull/5) by [@savannahostrowski](https://github.com/savannahostrowski).
- ✨ Add implementation of `fastapi-new` CLI, and base for `fastapi new` command. PR [#5](https://github.com/fastapi/fastapi-new/pull/5) by [@savannahostrowski](https://github.com/savannahostrowski).

### Refactors

* 👷 Switch to dynamic versioning with `pdm` build system. PR [#11](https://github.com/fastapi/fastapi-new/pull/11) by [@tiangolo](https://github.com/tiangolo).
- 👷 Switch to dynamic versioning with `pdm` build system. PR [#11](https://github.com/fastapi/fastapi-new/pull/11) by [@tiangolo](https://github.com/tiangolo).

### Docs

* 📝 Add instructions to README. PR [#12](https://github.com/fastapi/fastapi-new/pull/12) by [@tiangolo](https://github.com/tiangolo).
- 📝 Add instructions to README. PR [#12](https://github.com/fastapi/fastapi-new/pull/12) by [@tiangolo](https://github.com/tiangolo).

### Internal

* ⬆ Bump mypy from 1.14.1 to 1.18.2. PR [#10](https://github.com/fastapi/fastapi-new/pull/10) by [@dependabot[bot]](https://github.com/apps/dependabot).
* ⬆ Bump actions/download-artifact from 5 to 6. PR [#6](https://github.com/fastapi/fastapi-new/pull/6) by [@dependabot[bot]](https://github.com/apps/dependabot).
* ⬆ Bump actions/upload-artifact from 4 to 5. PR [#4](https://github.com/fastapi/fastapi-new/pull/4) by [@dependabot[bot]](https://github.com/apps/dependabot).
* 🔧 Tweak tagline for `pyproject.toml`. PR [#2](https://github.com/fastapi/fastapi-new/pull/2) by [@tiangolo](https://github.com/tiangolo).
* 👷 Update version of Smokeshow. PR [#3](https://github.com/fastapi/fastapi-new/pull/3) by [@tiangolo](https://github.com/tiangolo).
* 👷 Add tests setup for CI. PR [#1](https://github.com/fastapi/fastapi-new/pull/1) by [@tiangolo](https://github.com/tiangolo).
- ⬆ Bump mypy from 1.14.1 to 1.18.2. PR [#10](https://github.com/fastapi/fastapi-new/pull/10) by [@dependabot[bot]](https://github.com/apps/dependabot).
- ⬆ Bump actions/download-artifact from 5 to 6. PR [#6](https://github.com/fastapi/fastapi-new/pull/6) by [@dependabot[bot]](https://github.com/apps/dependabot).
- ⬆ Bump actions/upload-artifact from 4 to 5. PR [#4](https://github.com/fastapi/fastapi-new/pull/4) by [@dependabot[bot]](https://github.com/apps/dependabot).
- 🔧 Tweak tagline for `pyproject.toml`. PR [#2](https://github.com/fastapi/fastapi-new/pull/2) by [@tiangolo](https://github.com/tiangolo).
- 👷 Update version of Smokeshow. PR [#3](https://github.com/fastapi/fastapi-new/pull/3) by [@tiangolo](https://github.com/tiangolo).
- 👷 Add tests setup for CI. PR [#1](https://github.com/fastapi/fastapi-new/pull/1) by [@tiangolo](https://github.com/tiangolo).

## 0.0.1

Reserve PyPI package.
Reserve PyPI package.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ uvx fastapi-new

## License

This project is licensed under the terms of the MIT license.
This project is licensed under the terms of the MIT license.
12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,19 @@ ignore = [
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true

[tool.uv.workspace]
members = [
"iya",
]

[dependency-groups]
dev = [
"coverage>=7.11.2",
]

[tool.pdm.build]
source-includes = [
"tests/",
"requirements*.txt",
"scripts/",
]
]
7 changes: 0 additions & 7 deletions requirements-tests.txt

This file was deleted.

Binary file added requirements.txt
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -x

coverage combine
coverage report
coverage html
coverage html
2 changes: 1 addition & 1 deletion scripts/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
set -x

ruff check src tests scripts --fix
ruff format src tests scripts
ruff format src tests scripts
2 changes: 1 addition & 1 deletion scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -x

mypy src
ruff check src tests scripts
ruff format src tests --check
ruff format src tests --check
Loading
Loading