FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

🎨 Update docs format and references with pre-commit and Ruff (#667) · a0s/sqlmodel@56f4390 · GitHub

Repository navigation

Commit 56f4390

Browse files
authored
🎨 Update docs format and references with pre-commit and Ruff (fastapi#667)
1 parent 7c5894e commit 56f4390

7 files changed

Lines changed: 4 additions & 8 deletions

File tree

‎docs/tutorial/fastapi/relationships.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ In this case, we used `response_model=TeamRead` and `response_model=HeroRead`, s
8484

8585
# Code here omitted 👈
8686

87-
{!./docs_src/tutorial/fastapi/teams/tutorial001.py[ln:159-164]!}
87+
{!./docs_src/tutorial/fastapi/teams/tutorial001.py[ln:158-163]!}
8888

8989
# Code below omitted 👇
9090
```
@@ -234,7 +234,7 @@ In the case of the hero, this tells FastAPI to extract the `team` too. And in th
234234

235235
# Code here omitted 👈
236236

237-
{!./docs_src/tutorial/fastapi/relationships/tutorial001.py[ln:168-173]!}
237+
{!./docs_src/tutorial/fastapi/relationships/tutorial001.py[ln:167-172]!}
238238

239239
# Code below omitted 👇
240240
```

‎docs/tutorial/fastapi/session-with-dependency.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ And then we remove the previous `with` block with the old **session**.
177177

178178
# Code here omitted 👈
179179

180-
{!./docs_src/tutorial/fastapi/session_with_dependency/tutorial001.py[ln:55-107]!}
180+
{!./docs_src/tutorial/fastapi/session_with_dependency/tutorial001.py[ln:55-106]!}
181181
```
182182

183183
<details>

‎docs/tutorial/fastapi/teams.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ These are equivalent and very similar to the **path operations** for the **heroe
9292
```Python hl_lines="3-9 12-20 23-28 31-47 50-57"
9393
# Code above omitted 👆
9494

95-
{!./docs_src/tutorial/fastapi/teams/tutorial001.py[ln:139-193]!}
95+
{!./docs_src/tutorial/fastapi/teams/tutorial001.py[ln:138-192]!}
9696

9797
# Code below omitted 👇
9898
```

‎docs_src/tutorial/fastapi/app_testing/tutorial001/main.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ def update_hero(
9898

9999
@app.delete("/heroes/{hero_id}")
100100
def delete_hero(*, session: Session = Depends(get_session), hero_id: int):
101-
102101
hero = session.get(Hero, hero_id)
103102
if not hero:
104103
raise HTTPException(status_code=404, detail="Hero not found")

‎docs_src/tutorial/fastapi/relationships/tutorial001.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ def update_hero(
136136

137137
@app.delete("/heroes/{hero_id}")
138138
def delete_hero(*, session: Session = Depends(get_session), hero_id: int):
139-
140139
hero = session.get(Hero, hero_id)
141140
if not hero:
142141
raise HTTPException(status_code=404, detail="Hero not found")

‎docs_src/tutorial/fastapi/session_with_dependency/tutorial001.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ def update_hero(
9898

9999
@app.delete("/heroes/{hero_id}")
100100
def delete_hero(*, session: Session = Depends(get_session), hero_id: int):
101-
102101
hero = session.get(Hero, hero_id)
103102
if not hero:
104103
raise HTTPException(status_code=404, detail="Hero not found")

‎docs_src/tutorial/fastapi/teams/tutorial001.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ def update_hero(
127127

128128
@app.delete("/heroes/{hero_id}")
129129
def delete_hero(*, session: Session = Depends(get_session), hero_id: int):
130-
131130
hero = session.get(Hero, hero_id)
132131
if not hero:
133132
raise HTTPException(status_code=404, detail="Hero not found")

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL