Our great sponsors
-
git-auto-commit-action
Automatically commit and push changed files back to GitHub with this GitHub Action for the 80% use case.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
FastAPI-Backend-Template
A backend project template with FastAPI, PostgreSQL with asynchronous SQLAlchemy 2.0, Alembic for asynchronous database migration, and Docker.
-
FastAPI-Backend-Template
A backend project template with FastAPI, PostgreSQL with asynchronous SQLAlchemy 2.0, Alembic for asynchronous database migration, and Docker. (by Aeternalis-Ingenium)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
ruff
Discontinued An extremely fast Python linter, written in Rust. [Moved to: https://github.com/astral-sh/ruff] (by charliermarsh)
The code above is equivalent to the previous workflow. The main difference is that we are using the Ruff GitHub Action instead of running Ruff directly. Read more about the Ruff GitHub Action here
We are also using the auto-commit action to commit the changes. We can configure the commit message and other options. Read more about the auto-commit action here. This is optional - we can also use the git action to commit the changes manually.
View on GitHub
🐍 FastAPI
Ruff documentation:
Related posts
- How to setup Black and pre-commit in python for auto text-formatting on commit
- Testing Python Code Using UnitTest
- Django Code Formatting and Linting Made Easy: A Step-by-Step Pre-commit Hook Tutorial
- Packaging Python projects in 2023 from scratch
- Conversion from the f-string literals to format method in python