summaryrefslogtreecommitdiff
path: root/pylint/config/config_initialization.py
Commit message (Collapse)AuthorAgeFilesLines
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-291-2/+2
|
* [pre-commit] Transition from flake8/autoflake to ruff (#8372)Pierre Sassoulas2023-03-021-3/+4
| | | | | ruff is faster and support pyproject.toml. flake8-typing-import is not implemented but it checks for things in python version < 3.7.2 that we do not support.
* Changing flake8 to have max-line-length of 115 (#8362)Ollie2023-03-021-1/+2
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Support globbing pattern for input specification (#8312)Alexey Pelykh2023-03-011-2/+12
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix inconsistent argument exit code when argparse exit with its own error ↵David Lawson2022-12-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | 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>
* Fix handling of ``--`` as separator between positional args and flags (#7551)Daniël van Noord2022-10-021-2/+7
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix handling of ``--`` as separator of positional arguments and flagsDaniël van Noord2022-06-301-1/+2
|
* Fix handling of quoted ``init-hook`` (#7010)Daniël van Noord2022-06-231-1/+1
| | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Mix incorrect parsing of multi-line options in ``ini`` filesDaniël van Noord2022-06-131-1/+1
|
* [refactor] Change the name of the stashed messages list in PyLinterPierre Sassoulas2022-06-051-1/+1
|
* Store namespaces respective to directories (#6789)Daniël van Noord2022-06-041-0/+3
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Allow disabling `bad-option-value` and `unrecognized-option` with ↵Jacob Walls2022-05-271-3/+13
| | | | | `--disable=all` (#6691) Previously, due to the order in which options are parsed (config file, then command line), any unrecognized or bad options in the config file would emit messages unconditionally, even if suppressed on the CLI.
* Refactors in preparation of ``pylint-config``Daniël van Noord2022-05-171-6/+2
|
* Exit gracefully for unrecognized command line options (#6506)Daniël van Noord2022-05-051-2/+1
|
* Deprecate all old classes from ``optparse`` (#6338)Daniël van Noord2022-04-161-2/+3
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add ``unrecognized-option`` message (#6330)Daniël van Noord2022-04-151-1/+18
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add ``bad-option-value``Daniël van Noord2022-04-141-0/+8
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Use ``python-typing-update`` on ``pylint/config`` directory (#6307)Daniël van Noord2022-04-141-6/+8
|
* Remove use of deprecated methods in ``_ArgumentsProvider`` and ↵Daniël van Noord2022-04-131-32/+0
| | | | ``_config_initialization``
* Use ``namespace`` in ``PyLinter`` and the functional config tests (#6271)Daniël van Noord2022-04-121-8/+11
| | | | | | | * 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>
* Number of small refactors in ``argparse`` code (#6266)Daniël van Noord2022-04-111-7/+7
|
* Deprecate ``load_command_line_configuration``Daniël van Noord2022-04-111-1/+3
|
* Refactor ``ArgumentsManager.help``Daniël van Noord2022-04-111-1/+1
|
* Deprecate ``load_config_file``, ``load_configuration`` and ↵Daniël van Noord2022-04-071-1/+3
| | | | ``load_configuration_from_config`` (#6227)
* Deprecate ``load_provider_defaults`` and ``read_config_file`` (#6224)Daniël van Noord2022-04-071-1/+4
|
* Improve performance of config file readerDaniël van Noord2022-04-061-2/+4
|
* Refactor ``_config_initialization``Daniël van Noord2022-04-051-18/+15
|
* Do ``init-hook`` and ``load-plugins`` from ``argparse``Daniël van Noord2022-04-051-12/+8
|
* Remove ``_parse_plugin_configuration``Daniël van Noord2022-04-051-9/+6
|
* Finalize ``_parse_command_line_configuration`` (#6189)Daniël van Noord2022-04-051-2/+2
|
* Change how ``errors-mode`` is parsedDaniël van Noord2022-04-051-0/+2
|
* Refactor the help messageDaniël van Noord2022-04-041-1/+1
|
* Only exit after ``argparse`` parsing is doneDaniël van Noord2022-04-021-6/+6
|
* Do ``argparse`` parsing of config file first (#6119)Daniël van Noord2022-04-021-5/+5
|
* Create ``_ConfigurationFileParser`` class (#6055)Daniël van Noord2022-04-011-2/+9
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Some refactors of configuration file discovery (#6052)Daniël van Noord2022-04-011-5/+10
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Move setting of the current module to a better place in config init (#6046)Daniël van Noord2022-03-291-0/+3
|
* Create an `Argument` class and allow convertion of optdict into them (#5584)Daniël van Noord2022-03-291-3/+17
| | | | | * Use config initialization of ``_ArgumentsManager`` * Allow ``BaseChecker`` to register on a ``_ArgumentsManager`` * Use the ``argparse`` config handler in ``logging.py`` and add tests
* Add a pre-commit hook to check the copyright noticePierre Sassoulas2022-03-241-1/+1
| | | | | Fix the existing file so they have a notice. No header for setup.py or examples or doc
* Simplify hard to maintain copyright noticePierre Sassoulas2022-03-241-0/+1
| | | | | | git is the source of truth for the copyright, copyrite (the tool) was taking exponentially longer with each release, and it's polluting the code with sometime as much as 50 lines of names.
* Make functional tests always go through config initialization (#5594)Daniël van Noord2021-12-281-1/+2
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Create ``_config_initialization`` util and use in functional tests (#5591)Daniël van Noord2021-12-231-0/+75