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
9494Command line options can also be specified in a config file.
9595
9696When 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::
100101
101102 [codespell]
102103 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):
400400 options = parser .parse_args (list (args ))
401401
402402 # Load config files and look for ``codespell`` options.
403- cfg_files = ['setup.cfg' , '.codespellrc' ]
403+ cfg_files = ['setup.cfg' , '.codespellrc' , 'tox.ini' ]
404404 if options .config :
405405 cfg_files .append (options .config )
406406 config = configparser .ConfigParser ()
You can’t perform that action at this time.
0 commit comments