Skip to content

mypy - exclude option #346

Answered by akaihola
mayk0gan asked this question in Q&A
Mar 29, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Thanks for the great question @mayk0gan!

The exclusion options passed to Black come from Black configuration files, not Darker's command line options or [tool.darker] in pyproject.toml.

It just happened to be that in #146 @roniemartinez only needed this to skip Black reformatting, and we made the design decision to only do that and not touch isort and linter behavior.

If we want to be able to exclude files "globally" (for Black, isort and all linters), I think we need to come up with a Darker option which can be passed on the command line or specified in pyproject.toml.

The reason mypy doesn't honor the exclude option when run with Darker is that Darker calls mypy for each file individual…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@roniemartinez
Comment options

@mayk0gan
Comment options

mayk0gan May 7, 2022
Collaborator Author

Answer selected by mayk0gan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants