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 @@ -399,7 +399,7 @@ def parse_options(args):
399
399
options = parser .parse_args (list (args ))
400
400
401
401
# Load config files and look for ``codespell`` options.
402
- cfg_files = ['setup.cfg' , '.codespellrc' ]
402
+ cfg_files = ['setup.cfg' , '.codespellrc' , 'tox.ini' ]
403
403
if options .config :
404
404
cfg_files .append (options .config )
405
405
config = configparser .ConfigParser ()
You can’t perform that action at this time.
0 commit comments