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 #140 from jacebrowning/rc-config-file
Browse files Browse the repository at this point in the history
Support '.pep257rc' as a configuration filename
  • Loading branch information
Nurdok committed Oct 20, 2015
2 parents 3bc563b + deebc81 commit 20dc16f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/snippets/config.rst
@@ -1,6 +1,6 @@
``pep257`` supports `ini`-like configuration files. In order for ``pep257`` to
use it, it must be named ``setup.cfg``, ``tox.ini`` or ``.pep257`` and have
a ``[pep257]`` section.
use it, it must be named ``setup.cfg``, ``tox.ini``, ``.pep257``, or
``.pep257rc`` and have a ``[pep257]`` section.

When searching for a configuration file, ``pep257`` looks for one of the file
specified above `in that exact order`. If a configuration file was not found,
Expand Down
2 changes: 1 addition & 1 deletion src/pep257.py
Expand Up @@ -761,7 +761,7 @@ class ConfigurationParser(object):
DEFAULT_MATCH_DIR_RE = '[^\.].*'
DEFAULT_CONVENTION = conventions.pep257

PROJECT_CONFIG_FILES = ('setup.cfg', 'tox.ini', '.pep257')
PROJECT_CONFIG_FILES = ('setup.cfg', 'tox.ini', '.pep257', '.pep257rc')

def __init__(self):
"""Create a configuration parser."""
Expand Down

0 comments on commit 20dc16f

Please sign in to comment.