diff options
| author | Anthony Sottile <asottile@umich.edu> | 2019-07-08 20:12:47 +0000 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2019-07-08 20:12:47 +0000 |
| commit | 65262dc59750dadd98d7f2374a3cf9f993ca6ec8 (patch) | |
| tree | db73dbc99c0341846aad71fc47a5a59a633ca34b /src/flake8/main | |
| parent | 0d7247082efbe6e8189abd4eeb49a4ee3a128253 (diff) | |
| parent | 9ba6677c4ae4248b0f31d861a608db2efcc2679a (diff) | |
| download | flake8-65262dc59750dadd98d7f2374a3cf9f993ca6ec8.tar.gz | |
Merge branch 'extend-exclude' into 'master'
support extend-exclude Fixes #535
Closes #535
See merge request pycqa/flake8!315
Diffstat (limited to 'src/flake8/main')
| -rw-r--r-- | src/flake8/main/options.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/flake8/main/options.py b/src/flake8/main/options.py index d2a7159..e1f1767 100644 --- a/src/flake8/main/options.py +++ b/src/flake8/main/options.py @@ -14,6 +14,7 @@ def register_default_options(option_manager): - ``--count`` - ``--diff`` - ``--exclude`` + - ``--extend-exclude`` - ``--filename`` - ``--format`` - ``--hang-closing`` @@ -86,6 +87,16 @@ def register_default_options(option_manager): ) add_option( + "--extend-exclude", + metavar="patterns", + default="", + parse_from_config=True, + comma_separated_list=True, + help="Comma-separated list of files or directories to add to the list" + " of excluded ones." + ) + + add_option( "--filename", metavar="patterns", default="*.py", |
