-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration file(s) #49
Comments
We'll need to settle for (1) the location(s) of Darker configuration, and (2) the format of it. My number one proposal would be Mapping command line options to directly to [tool.darker]
src = []
revision = "HEAD"
diff = false
check = false
isort = false
lint = []
log_level = "WARNING" So if I'd like to make these options default: darker -vv -r master --check --diff --isort -L flake8 -L mypy -L pylint -L cov_to_lint.py src I would put this in [tool.darker]
src = [
"src",
]
revision = "master"
diff = true
check = true
isort = true
lint = [
"flake8",
"mypy",
"pylint",
"cov_to_lint.py",
]
log_level = "DEBUG" |
Also dumps configuration on terminal if debug level logging is enabled with the `-vv` or `--verbose --verbose` command line option.
Also dumps configuration on terminal if debug level logging is enabled with the `-vv` or `--verbose --verbose` command line option.
Like with Black, it would be convenient to be able to set Darker's options not only on the command line but also in per-repository configuration files.
The text was updated successfully, but these errors were encountered: