Skip to content

Commit bee012e

Browse files
Add tox.ini to the list of default config files
1 parent e3f5aa9 commit bee012e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,10 @@ Using a config file
9090
Command line options can also be specified in a config file.
9191

9292
When running ``codespell``, it will check in the current directory for a file
93-
named ``setup.cfg`` or ``.codespellrc`` (or a file specified via ``--config``),
94-
containing an entry named ``[codespell]``. Each command line argument can
95-
be specified in this file (without the preceding dashes), for example::
93+
named ``setup.cfg``, ``tox.ini`` or ``.codespellrc`` (or a file specified via
94+
``--config``), containing an entry named ``[codespell]``. Each command line
95+
argument can be specified in this file (without the preceding dashes), for
96+
example::
9697

9798
[codespell]
9899
skip = *.po,*.ts,./src/3rdParty,./src/Test

codespell_lib/_codespell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def parse_options(args):
399399
options = parser.parse_args(list(args))
400400

401401
# Load config files and look for ``codespell`` options.
402-
cfg_files = ['setup.cfg', '.codespellrc']
402+
cfg_files = ['setup.cfg', '.codespellrc', 'tox.ini']
403403
if options.config:
404404
cfg_files.append(options.config)
405405
config = configparser.ConfigParser()

0 commit comments

Comments
 (0)