pydocstyle icon indicating copy to clipboard operation
pydocstyle copied to clipboard

Feature request: Command line option to pipe default configuration to stdout

Open fkromer opened this issue 6 years ago • 3 comments

Could we add a command line option to output the default configuration similar to how pylint does (to get a config file containing the default config with e.g. pylint --generate-rcfile > .pylintrc)?

pylint -h
    --generate-rcfile   Generate a sample configuration file according to the
                        current configuration. You can put other options
                        before this one to get them in the generated
                        configuration.

fkromer avatar Apr 09 '18 15:04 fkromer

Sounds like a great idea! PRs welcome.

Nurdok avatar Apr 09 '18 16:04 Nurdok

One interesting pylint commit for reference is --generate-rcfile generates by default human readable symbols for the…

fkromer avatar Apr 09 '18 16:04 fkromer

WIthout recalling exactly which files pydocstyle checks for config, can I suggest merely printing out the config section given the number of config options supported by pydocstyle is probably less than a fifth of what pylint supports

sigmavirus24 avatar Apr 09 '18 16:04 sigmavirus24