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 @@ -94,9 +94,10 @@ Using a config file
94
94
Command line options can also be specified in a config file.
95
95
96
96
When running ``codespell ``, it will check in the current directory for a file
97
- named ``setup.cfg `` or ``.codespellrc `` (or a file specified via ``--config ``),
98
- containing an entry named ``[codespell] ``. Each command line argument can
99
- be specified in this file (without the preceding dashes), for example::
97
+ named ``setup.cfg ``, ``tox.ini `` or ``.codespellrc `` (or a file specified via
98
+ ``--config ``), containing an entry named ``[codespell] ``. Each command line
99
+ argument can be specified in this file (without the preceding dashes), for
100
+ example::
100
101
101
102
[codespell]
102
103
skip = *.po,*.ts,./src/3rdParty,./src/Test
Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ def parse_options(args):
400
400
options = parser .parse_args (list (args ))
401
401
402
402
# Load config files and look for ``codespell`` options.
403
- cfg_files = ['setup.cfg' , '.codespellrc' ]
403
+ cfg_files = ['setup.cfg' , '.codespellrc' , 'tox.ini' ]
404
404
if options .config :
405
405
cfg_files .append (options .config )
406
406
config = configparser .ConfigParser ()
You can’t perform that action at this time.
0 commit comments