From ebdbdadb6cdba273eb8eb34d7d9ccb841adec7f6 Mon Sep 17 00:00:00 2001 From: Jace Browning Date: Wed, 15 Feb 2017 17:09:34 -0500 Subject: [PATCH] Allow file extensions on config files --- docs/snippets/config.rst | 2 ++ src/pydocstyle/config.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/snippets/config.rst b/docs/snippets/config.rst index 1ee83bc2..71a05189 100644 --- a/docs/snippets/config.rst +++ b/docs/snippets/config.rst @@ -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 diff --git a/src/pydocstyle/config.py b/src/pydocstyle/config.py index c0c3f295..6c97303b 100644 --- a/src/pydocstyle/config.py +++ b/src/pydocstyle/config.py @@ -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', )