Skip to content

Add Materials for "A Close Look at a FastAPI Example Application" - #693

Merged
bzaczynski merged 15 commits into
masterfrom
fastapi-python-web-apis
Oct 19, 2025
Merged

bzaczynski merged 15 commits into
masterfrom
fastapi-python-web-apis

Conversation

@acsany

acsany commented Aug 12, 2025

Copy link
Copy Markdown
Member Author

@martin-martin I'm currently struggling a little bit with the linter. My local ruff (same version as the CI/CD) is happy with the formatting:

CleanShot_2025-08-12_16-15-45@2x

Personally, I'd add the fastapi imports before the jinja2 and pydantic ones, but it seems ruff has a different opinion on that. Maybe you have a suggestion on how to fix the linter error?

@acsany
acsany requested a review from martin-martin August 12, 2025 14:18
@martin-martin

Copy link
Copy Markdown
Contributor

@acsany it's usually a version mismatch between your local linting tools and the ones that the CI uses. The ones here on the materials repo are kind of old:

black[jupyter]==24.4.2
ruff==0.4.2

I've just set it up locally for me with the old versions, ran the lint check, and ruff did the fix for me that old man ruff expected (adding a newline between pydantic and fastapi. They needed some space to think...)

@martin-martin martin-martin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, a couple of small syncing changes and we're good to go 🚀

Comment thread fastapi-python-web-apis/main.py Resolved
Comment thread fastapi-python-web-apis/main.py Resolved
Comment thread fastapi-python-web-apis/main.py Resolved
Comment thread fastapi-python-web-apis/main.py Resolved
@martin-martin
martin-martin self-requested a review October 8, 2025 11:34

@martin-martin martin-martin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bzaczynski
bzaczynski merged commit 1efecec into master Oct 19, 2025
@bzaczynski
bzaczynski deleted the fastapi-python-web-apis branch October 19, 2025 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants