summaryrefslogtreecommitdiff
path: root/pylint/config/arguments_manager.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix inconsistent argument exit code when argparse exit with its own error ↵David Lawson2022-12-141-3/+6
| | | | | | | | | | | | | | | | | | | | | | code (#7931) Returning 2 here is confusing as it doesn't match the documentation: https://pylint.pycqa.org/en/latest/user_guide/usage/run.html#exit-codes * pylint: use exit code 32 when invalid arguments are passed * pylint: add failing test when ambiguous abbreviated parameters are set in a config file This is confusing behaviour. The output is: ``` usage: pylint [options] pylint: error: ambiguous option: --no could match --notes, --notes-rgx, --no-docstring-rgx ``` The exit code is 2 which doesn't match the documentation: https://pylint.pycqa.org/en/latest/user_guide/usage/run.html#exit-codes * pylint: use exit code 32 when ambiguous abbreviated parameters are set in a config file Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Sort --generate-rcfile outputMarc Mueller2022-10-211-2/+5
|
* Add ``minimal`` option to ``pylint-config`` (#7489)Daniël van Noord2022-09-191-9/+16
| | | Co-authored-by: Christian Clauss <cclauss@me.com>
* Use stacklevel=2 in warnings.warn calls to DeprecationWarning where makes ↵Yilei "Dolee" Yang2022-09-151-0/+19
| | | | | | | | sense. (#7465) Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add ``Any`` typing to deprecated methodsDaniël van Noord2022-09-091-2/+4
|
* Turn on ``check-untyped-defs`` in ``mypy`` (#7407)Daniël van Noord2022-09-091-4/+6
|
* Store namespaces respective to directories (#6789)Daniël van Noord2022-06-041-1/+12
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Some initial line wrapping of docstrings (#6672)Daniël van Noord2022-05-231-1/+3
|
* Make ``_generate_config_file`` return a stringDaniël van Noord2022-05-221-2/+2
|
* Add setup and --help command to pylint-configDaniël van Noord2022-05-211-4/+12
|
* Refactors in preparation of ``pylint-config``Daniël van Noord2022-05-171-0/+2
|
* Use main instead of master as main checker name (#6569)Daniël van Noord2022-05-101-2/+2
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Make sure that --generate-toml-config generates a valid file (#6564)Daniël van Noord2022-05-101-1/+11
|
* Disable fixme for internal uses before we make it optional in #3512 (#6482)Pierre Sassoulas2022-05-011-5/+4
|
* Run development version of ``pydocstringformatter`` (#6469)Daniël van Noord2022-04-281-4/+4
|
* [spelling] Remove remaining typoes detected by the spelling checkerPierre Sassoulas2022-04-261-2/+2
|
* Fix short ``-v`` flag and add ``metavar`` support to ``_CallableArgument`` ↵Daniël van Noord2022-04-191-0/+1
| | | | (#6386)
* Transition ``pyreverse`` from ``optparse`` to ``argparse`` (#6334)Daniël van Noord2022-04-151-1/+4
|
* Deprecate ``options_providers``Daniël van Noord2022-04-151-3/+20
|
* Add ``unrecognized-option`` message (#6330)Daniël van Noord2022-04-151-4/+13
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Increase coverage for ``argparse`` (#6331)Daniël van Noord2022-04-151-6/+2
| | | | | | * Fix coverage of ``pylint/config/arguments_manager.py`` * Fix coverage of ``pylint/config/utils.py`` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Merge pull request #6298 from DanielNoord/argparse-pyreverse-2Andreas Finkler2022-04-151-1/+2
|\ | | | | Add typing and small refactors to pyreverse
| * Add typing and small refactors to pyreverseDaniël van Noord2022-04-151-1/+2
| |
* | Exclude deprecated methods and files from coverageDaniël van Noord2022-04-151-15/+19
| |
* | Deprecate the ``level`` attributeDaniël van Noord2022-04-151-1/+0
| |
* | Deprecate ``cb_set_provider_option``Daniël van Noord2022-04-151-5/+7
|/
* Remove ``_ArgumentsManager.namespace``Daniël van Noord2022-04-141-8/+0
|
* Add classifications to TODOs across codebaseDaniël van Noord2022-04-141-2/+2
|
* Replace .namespace with .config (#6316)Daniël van Noord2022-04-141-8/+8
|
* Set ``Namespace`` on ``config`` instead of ``namespace``Daniël van Noord2022-04-141-2/+15
|
* Add ``_ArgumentsManager.set_option`` and deprecate old option setters (#6299)Daniël van Noord2022-04-141-6/+37
|
* Use ``python-typing-update`` on ``pylint/config`` directory (#6307)Daniël van Noord2022-04-141-23/+25
|
* Create ``_ExtendArgument``Daniël van Noord2022-04-141-0/+12
|
* Add a ``--generate-toml-config`` option (#6199)Daniël van Noord2022-04-131-0/+75
|
* Use ``namespace`` in ``--generate-rcfile`` (#6282)Daniël van Noord2022-04-131-20/+34
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Deprecate ``BaseChecker.config`` (#6278)Daniël van Noord2022-04-121-0/+4
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Use ``namespace`` in ``PyLinter`` and the functional config tests (#6271)Daniël van Noord2022-04-121-8/+6
| | | | | | | * Use callback actions in ``PyLinter`` * Turn off ``optparse`` command line parsing * No longer emit ``bad-configuration-section`` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Deprecate most methods of ``_ArgumentsProvider``Daniël van Noord2022-04-121-17/+21
|
* Number of small refactors in ``argparse`` code (#6266)Daniël van Noord2022-04-111-1/+1
|
* Remove ``OptionsProviderMixIn`` from ``BaseChecker``Daniël van Noord2022-04-111-9/+9
|
* Update TODOs and add changelog entry about ``ArgumentsManager``Daniël van Noord2022-04-111-14/+18
|
* Deprecate ``load_command_line_configuration``Daniël van Noord2022-04-111-52/+22
|
* Refactor ``ArgumentsManager.help``Daniël van Noord2022-04-111-5/+9
|
* Deprecate ``load_config_file``, ``load_configuration`` and ↵Daniël van Noord2022-04-071-10/+24
| | | | ``load_configuration_from_config`` (#6227)
* Deprecate ``load_provider_defaults`` and ``read_config_file`` (#6224)Daniël van Noord2022-04-071-7/+19
|
* Deprecate ``generate_config`` (#6222)Daniël van Noord2022-04-071-25/+31
|
* Deprecate ``add_optik_option`` and ``optik_option`` (#6220)Daniël van Noord2022-04-071-19/+50
|
* Deprecate ``add_option_group``Daniël van Noord2022-04-071-18/+34
|
* Deprecate ``register_options_provider`` (#6217)Daniël van Noord2022-04-071-8/+23
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Deprecate ``reset_parsers``Daniël van Noord2022-04-071-10/+18
|