Attempt to get configuration from setup.cfg if .coveragerc is not present · Issue #304 · nedbat/coveragepy (original) (raw)
Originally reported by Alexander Walters (Bitbucket: sdamon, GitHub: sdamon)
Before I start, I have no idea how trivial or difficult this would be.
I propose that, if there is not a .coveragerc file present in (the directories that it looks for them), and there is a setup.cfg in that search path, coverage should look for configuration values in that file. The rational for this is simple two fold; many tools already use this file for configuration (nose, flake8 are two that I personally use that will look in this file), and this gives the option to de-pollute a repository with files that are ostensibly infrastructure configuration, rather than the task at hand: code.
I am listing this as minor as this is just a 'would be nice' kind of enhancement.