-
Hi, quoted from the README file:
"Isort and linters are still run on excluded files" - is there a particular reason for that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for the great question @mayk0gan! The exclusion options passed to Black come from Black configuration files, not Darker's command line options or 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 The reason
There's actually a plan to change how Does this make sense? |
Beta Was this translation helpful? Give feedback.
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]
inpyproject.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 theexclude
option when run with Darker is that Darker callsmypy
for each file individual…