summaryrefslogtreecommitdiff
path: root/src/flake8/main/options.py
Commit message (Collapse)AuthorAgeFilesLines
* Update --indent-size help format stringJacob Hayes2021-08-011-1/+1
|
* Add --extend-select command line argumentFrank Winklmeier2021-04-111-0/+13
| | | | | | | | | Implement `--extend-select` command line argument following what was done for `--extend-ignore` in !233. This option can be used to selectively add individual codes without overriding the default list entirely. Addresses the remaining item of issue #1061.
* com2annAnthony Sottile2021-03-301-3/+2
|
* automatic: pyupgrade --py36-plusAnthony Sottile2021-03-301-1/+1
|
* remove vcs integrationAnthony Sottile2021-03-291-9/+0
|
* Add indent-size optionvalentin2021-03-141-0/+9
|
* Add option to disable show-source for calling toolsAnthony Sottile2020-06-191-0/+7
|
* fix JobsArgument --help outputRuairidh MacLeod2020-06-051-0/+4
|
* treat --extend-exclude as a file listAnthony Sottile2020-05-211-0/+1
|
* Parse --jobs as a custom argparse type. Fixes #567Ruairidh MacLeod2020-05-131-0/+22
|
* application: Register preliminary options on a separate argument parserEric N. Vander Weele2019-10-251-7/+9
| | | | | | | | | | We introduce a new `ArgumentParser` for registering the preliminary options to be inherited by the `Application.option_manager`. The next step will be to use the `Application.prelim_arg_parser` for parsing and handling preliminary options and arguments. Note that we prevent the preliminary parser from handling `-h/--help` and defer to that to the primary parser.
* options: Split-out registration of preliminary optionsEric N. Vander Weele2019-10-251-44/+54
| | | | | This is in preparation for having separate `ArgumentParser`s for preliminary and the remaining options.
* Reformat files via `black`Eric N. Vander Weele2019-10-131-3/+1
| | | | This was missed in bb12b83.
* Merge branch 'remove-output-file-config' into 'master'Anthony Sottile2019-10-131-1/+0
|\ | | | | | | | | options: Remove parsing `--output-file` from the configuration file See merge request pycqa/flake8!361
| * options: Remove parsing `--output-file` from the configuration fileEric N. Vander Weele2019-10-121-1/+0
| | | | | | | | | | | | | | The `--output-file` option is used when parsing and handling preliminary options for logging. It is also used to set `BaseFormatter.filename`. Towards ensuring that the option is respected consistently for both logging and formatting plugins, only observe the value from the CLI.
* | options: Remove parsing `--verbose` from the configuration fileEric N. Vander Weele2019-10-121-1/+0
|/ | | | | | | | | | | | The `--verbose` option is only used by `flake8`, itself,` when parsing and handling preliminary options. After parsing and merging options from the configuration file, there is no other behavioral impact to the core of `flake8`. In other words, setting `verbose = ...` in a configuration file doesn't change the logging verbosity. While the `FileProcessor` does expose a `verbose` attribute, obtained from the parsed options, the verbosity of the core of `flake8` should be consistent with how a plugin may respond to the attribute's value.
* move from optparse to argparseAnthony Sottile2019-08-171-20/+17
|
* Fix / improve recently merged patches + CIAnthony Sottile2019-07-081-1/+1
|
* support extend-exclude Fixes #535Thomas Grainger2019-07-081-0/+11
|
* Latest pycodestyleAnthony Sottile2019-01-291-0/+11
|
* Support more syntaxes in per-file-ignoresAnthony Sottile2019-01-071-3/+1
|
* Add support for per-file ignores in configIan Stapleton Cordasco2018-10-251-0/+14
| | | | | | | | | This adds support for rules that ignore violation codes on a per-file basis. This takes a similar functional approach to https://github.com/snoack/flake8-per-file-ignores which allows for glob patterns like the `--exclude` option. Closes #156
* Use black to reformat Flake8Ian Stapleton Cordasco2018-10-201-86/+149
| | | | | Instead of just using Flake8 and pylint to keep Flake8 clean, let's also use black to make it less manual for clean-up.
* Fix docs for --isolated flagSargun Vohra2018-09-091-1/+1
|
* Implement --extend-ignoreVille Skyttä2018-05-161-0/+8
| | | | Refs #365
* Correct "systema" typo in usage documentation.Andrew Drake2017-01-171-1/+1
|
* Fix subtle reporting bug for default on pluginsIan Cordasco2016-11-151-3/+3
| | | | | | | | | | | When we refactored our decision process to fix #239, we broke a subtle corner case where extensions that are not off-by-default are to be reported. This further refactors that logic and adds specific tests around it to ensure it works as expected and doesn't regress. Closes #257
* Merge branch 'master' into 'master' Ian Cordasco2016-10-251-0/+6
|\ | | | | | | | | | | | | | | | | | | | | Add --tee option to split report output stream. The `--tee` option allows the linter report to be written to stdout, even though it is being redirected to a file with the` --output-file` option. This is useful if I want to store the report in a separate file for later analysis but also be able to print the output on screen (e.g when running in a CI environment). See merge request !90
| * Add --tee option to split report output stream.Martin Domke2016-07-261-0/+6
| | | | | | | | | | | | | | | | The --tee option allows the linter report to be written to stdout, even though it is being redirected to a file with the --output-file option. This is useful if I want to store the report in a separate file for later analysis but also be able to print the output on screen (e.g when running in a CI environment).
* | Add --bug-report flag to help bug reportersIan Cordasco2016-08-071-0/+11
|/ | | | | | | When invoked it will print out JSON that has all of the debugging information needed by the maintainers to diagnose or reproduce a bug. Closes #207
* Move flake8 into srcIan Cordasco2016-06-251-0/+201
This is an emerging best practice and there is little reason to not follow it