Skip to content

👷 Run mypy in pre-commit instead of Lint step in test.yml workflow#1511

Merged
tiangolo merged 5 commits intomasterfrom
re-enable-mypy
Feb 3, 2026
Merged

👷 Run mypy in pre-commit instead of Lint step in test.yml workflow#1511
tiangolo merged 5 commits intomasterfrom
re-enable-mypy

Conversation

@YuriiMotov
Copy link
Member

@YuriiMotov YuriiMotov commented Feb 3, 2026

Currently linting is run by pre-commit (only ruff) and by test.yml (lint.sh script for every python version except 3.9).

This PR disables running linters in test.yml and adds mypy check hook to pre-commit.

Checked that everything works by introducing typing issue: https://github.com/fastapi/typer/actions/runs/21621618931/job/62311751716?pr=1511#step:8:27

This reverts commit 7ca2faf.
@YuriiMotov YuriiMotov changed the title Run mypy in pre-commit instead of Lint step in test.yml workflow 👷 Run mypy in pre-commit instead of Lint step in test.yml workflow Feb 3, 2026
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.

Thanks! 🚀

@tiangolo tiangolo merged commit 7532fcb into master Feb 3, 2026
26 checks passed
@tiangolo tiangolo deleted the re-enable-mypy branch February 3, 2026 18:31
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.

2 participants