We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed1e25c commit 9e396b0Copy full SHA for 9e396b0
pep8.py
@@ -1925,7 +1925,15 @@ def get_parser(prog='pep8', version=__version__):
1925
1926
1927
def read_config(options, args, arglist, parser):
1928
- """Read both user configuration and local configuration."""
+ """Read and parse configurations
1929
+
1930
+ If a config file is specified on the command line with the "--config"
1931
+ option, then only it is used for configuration.
1932
1933
+ Otherwise, the user configuration (~/.config/pep8) and any local
1934
+ configurations in the current directory or above will be merged together
1935
+ (in that order) using the read method of ConfigParser.
1936
+ """
1937
config = RawConfigParser()
1938
1939
cli_conf = options.config
0 commit comments