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
9090Command line options can also be specified in a config file.
9191
9292When 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
Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ def parse_options(args):
401401 options = parser .parse_args (list (args ))
402402
403403 # Load config files and look for ``codespell`` options.
404- cfg_files = ['setup.cfg' , '.codespellrc' ]
404+ cfg_files = ['setup.cfg' , '.codespellrc' , 'tox.ini' ]
405405 if options .config :
406406 cfg_files .append (options .config )
407407 config = configparser .ConfigParser ()
You can’t perform that action at this time.
0 commit comments