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