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

Allow file extensions on config files #237

Merged
merged 1 commit into from Feb 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/snippets/config.rst
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
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