Skip to content

how can i have strict rules like mypy? #13216

Answered by tjkuson
Heus-Sueh asked this question in Q&A
Discussion options

You must be logged in to vote

You are probably looking for the flake8-annotations (ANN) ruleset. There isn't a strict mode in Ruff per se, so you'd just have to extend-select the additional rules you would like to enable (see lint.extend_select). An actual strict mode is most likely waiting on #1774 (not a maintainer myself).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Heus-Sueh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants