Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #237 from jacebrowning/config-extensions
Browse files Browse the repository at this point in the history
Allow file extensions on config files
  • Loading branch information
Nurdok authored Feb 17, 2017
2 parents 69bb3b8 + ebdbdad commit 226c7ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/snippets/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ options, and have a ``[pydocstyle]`` section.
* ``setup.cfg``
* ``tox.ini``
* ``.pydocstyle``
* ``.pydocstyle.ini``
* ``.pydocstylerc``
* ``.pydocstylerc.ini``

When searching for a configuration file, ``pydocstyle`` looks for one of the
file specified above *in that exact order*. If a configuration file was not
Expand Down
2 changes: 2 additions & 0 deletions src/pydocstyle/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ class ConfigurationParser(object):
'setup.cfg',
'tox.ini',
'.pydocstyle',
'.pydocstyle.ini',
'.pydocstylerc',
'.pydocstylerc.ini',
# The following is deprecated, but remains for backwards compatibility.
'.pep257',
)
Expand Down

0 comments on commit 226c7ed

Please sign in to comment.