Skip to content

Conversation

@YuriiMotov
Copy link
Contributor

@YuriiMotov YuriiMotov commented Dec 19, 2025

👷 Add pre-commit workflow

Almost same as fastapi/typer#1453, diff: d4789f8

Also, changes as in https://github.com/fastapi/fastapi/pull/14592/files applied here

Plus, removed default_language_version: and ci: sections from .pre-commit-config.yaml as in https://github.com/fastapi/fastapi/pull/14397/files


In this repo linting is run with each Python version + one more time by pre-commit:

- name: Lint
run: uv run --no-sync scripts/lint.sh

I removed that step from test.yml as we agreed with Sebastian

@YuriiMotov YuriiMotov changed the title ⬆️ Use prek as a pre-commit alternative 👷 Add pre-commit workflow Dec 22, 2025
@YuriiMotov YuriiMotov marked this pull request as draft December 22, 2025 22:09
@YuriiMotov YuriiMotov marked this pull request as ready for review December 23, 2025 12:44
Copy link
Member

@tiangolo tiangolo left a comment

Choose a reason for hiding this comment

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

Awesome, thank you! 🚀

@tiangolo tiangolo merged commit 55f7c36 into main Dec 26, 2025
14 checks passed
@tiangolo tiangolo deleted the prek branch December 26, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants