mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 21:44:18 +00:00
Add documentation for --prepend-config option
This commit is contained in:
parent
9631dac52a
commit
d3ec3ed315
3 changed files with 33 additions and 0 deletions
|
|
@ -80,6 +80,8 @@ Index of Options
|
|||
|
||||
- :option:`flake8 --tee`
|
||||
|
||||
- :option:`flake8 --prepend-config`
|
||||
|
||||
- :option:`flake8 --append-config`
|
||||
|
||||
- :option:`flake8 --config`
|
||||
|
|
@ -739,6 +741,27 @@ Options and their Descriptions
|
|||
tee = True
|
||||
|
||||
|
||||
.. option:: --prepend-config=<config>
|
||||
|
||||
:ref:`Go back to index <top>`
|
||||
|
||||
Provide extra config files to parse in before and in addition to the files
|
||||
that |Flake8| found on its own. Since these files are the first ones read
|
||||
into the Configuration Parser, they have the lowest precedence if it
|
||||
provides an option specified in another config file.
|
||||
|
||||
Typical use is to specify cross-project options that can still be
|
||||
overridden by user or project config files.
|
||||
|
||||
Command-line example:
|
||||
|
||||
.. prompt:: bash
|
||||
|
||||
flake8 --prepend-config=my-default-config.ini dir/
|
||||
|
||||
This **can not** be specified in config files.
|
||||
|
||||
|
||||
.. option:: --append-config=<config>
|
||||
|
||||
:ref:`Go back to index <top>`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue