File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -90,9 +90,10 @@ Using a config file
90
90
Command line options can also be specified in a config file.
91
91
92
92
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::
96
97
97
98
[codespell]
98
99
skip = *.po,*.ts,./src/3rdParty,./src/Test
Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ def parse_options(args):
401
401
options = parser .parse_args (list (args ))
402
402
403
403
# Load config files and look for ``codespell`` options.
404
- cfg_files = ['setup.cfg' , '.codespellrc' ]
404
+ cfg_files = ['setup.cfg' , '.codespellrc' , 'tox.ini' ]
405
405
if options .config :
406
406
cfg_files .append (options .config )
407
407
config = configparser .ConfigParser ()
You can’t perform that action at this time.
0 commit comments