summaryrefslogtreecommitdiff
path: root/tests/config
Commit message (Collapse)AuthorAgeFilesLines
* Search for pyproject.toml config file in parent dirs (#7163)Mikhail f. Shiryaev2023-04-301-0/+41
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-2922-37/+37
|
* [deprecation] ``setup.cfg``and ``tox.ini`` sections need to start by ↵Pierre Sassoulas2023-03-202-6/+0
| | | | 'pylint' (#8465)
* Remove deprecated functions and classes (#8409)Daniël van Noord2023-03-091-33/+0
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Remove all old code related to ``optparse`` config parsing. (#8405)Daniël van Noord2023-03-083-178/+0
| | | | | * Remove all old config parsing code * Temporarily disable a test
* [test] Use an empty pylintrc so tests to not depend on system's conf (#8350)Pierre Sassoulas2023-02-262-2/+10
| | | | | | | | | | | | | * [test] Use an empty pylintrc so tests to not depend on system's conf Closes #8342 * Update tests/checkers/unittest_imports.py Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> --------- Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Fixing some too long lines (#8339)Ollie2023-02-252-11/+13
| | | | | * Changing flake8 max-line-length to 120 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add flag `--clear-cache-post-run` to support server-like usage (#7802)Jacob Walls2022-12-051-0/+18
| | | | | | Use this flag if you expect the linted files to be altered between runs, for instance, if using pylint in a server-like mode. The flag clear's astroid's in-memory caches.
* Drop dependency on py module (#7829)Lumír 'Frenzy' Balhar2022-11-231-4/+3
| | | | | | | | | * pytest 7.2 no longer depends on py so it's better to drop it. `tmp_path` fixture is newer and uses `pathlib.Path` from stdlib instead of `LocalPath` from `py._path`. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com>
* fix: test_logger_rcfile: replace only the last .py token in the string (#7521)Sandro Tosi2022-10-031-1/+4
| | | 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-4/+3
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add ``minimal`` option to ``pylint-config`` (#7489)Daniël van Noord2022-09-191-0/+40
| | | Co-authored-by: Christian Clauss <cclauss@me.com>
* Finish unfinished typing in non core directories (#7443)Daniël van Noord2022-09-091-1/+1
| | | | | | | | * Add typing to setup calls in documentation folder * Finish some incomplete typing signatures in script * Add typing to unfinished signatures in the tests directory
* Finish some incomplete typing signatures (#7442)Daniël van Noord2022-09-091-2/+2
|
* Suppress ``OSError`` in config file discovery (#7423)Daniël van Noord2022-09-061-0/+9
|
* Add typing to ``unittest_config`` (#7404)Daniël van Noord2022-09-041-6/+6
|
* Remove ignores for ``LocalPath``Daniël van Noord2022-09-031-1/+1
|
* Replace deprecated `sre_constants.error` with `re.error`Jacob Walls2022-08-271-3/+2
|
* Fix crash when regex option raises a `re.error` exception. (#7228)Mark Byrne2022-07-311-0/+30
| | | | | | | Closes #7202 * Apply the regex validation to comma-separated regular expression option values. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* test_run_pylint_config: ignore pytest args (#7165)Adam Williamson2022-07-121-1/+1
| | | | | | | | | This test fails if run through pytest with any args, because `_run_pylint_config` passes through args from the command line without checking if the args are actually intended for pylint-config. We have to pass it some fake args that evaluate truth-y but don't break anything, to avoid this. Signed-off-by: Adam Williamson <awilliam@redhat.com>
* Fix handling of ``--`` as separator of positional arguments and flagsDaniël van Noord2022-06-301-0/+10
|
* Fix recognition of config files named ``setup.cfg`` (#3630) (#6577)Pierre Sassoulas2022-06-296-0/+37
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Fix handling of quoted ``init-hook`` (#7010)Daniël van Noord2022-06-232-0/+5
| | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Mix incorrect parsing of multi-line options in ``ini`` filesDaniël van Noord2022-06-132-1/+8
|
* [bad-option-value] Add a 'useless-option-value' messagePierre Sassoulas2022-06-0612-18/+17
| | | | | | | So it's possible to to distinguish between genuine typoes and old configuration that could be cleaned. We use old_names to decrease message type to warning
* [bad-option-value] Use the right confidence and refactor message (#6829)Pierre Sassoulas2022-06-046-11/+11
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Store namespaces respective to directories (#6789)Daniël van Noord2022-06-041-0/+24
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [deleted messages] Add an exception for deleted messages in MessageIdStorePierre Sassoulas2022-06-043-0/+23
|
* Fix the use of abbreviations for preprocessable options on the CLI (#6820)Daniël van Noord2022-06-031-0/+15
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix parsing of unrelated options in tox.ini (#6801)Daniël van Noord2022-06-032-0/+19
|
* Don't crash if we can't find the user's home directory (#6806)Daniël van Noord2022-06-021-0/+15
|
* Allow specifying an output file when generating a configuration file (#6662)Daniël van Noord2022-05-221-0/+83
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add ``ParamSpec`` to decoratorDaniël van Noord2022-05-221-3/+3
|
* Retry user input if it is not correctDaniël van Noord2022-05-222-3/+38
|
* Add ``generate`` subparser to ``pylint-config``Daniël van Noord2022-05-211-0/+69
|
* Add setup and --help command to pylint-configDaniël van Noord2022-05-211-0/+44
|
* Add invocation testDaniël van Noord2022-05-211-0/+24
|
* Use main instead of master as main checker name (#6569)Daniël van Noord2022-05-103-4/+4
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix behavior of empty `--confidence` optionJacob Walls2022-05-051-0/+7
|
* Disable duplicate-code warningsMarc Mueller2022-05-051-0/+5
|
* Exit gracefully for unrecognized command line options (#6506)Daniël van Noord2022-05-051-5/+6
|
* Fix the loading of unrelated tools options (#6356)Pierre Sassoulas2022-05-058-3/+43
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Regression tests for setup.cfg's options using the wrong section failing ↵Pierre Sassoulas2022-05-052-0/+12
| | | | | | | | | | silently (#6335) * Regression tests for #4272 Closes #4272. The problem was fixed during the migration from optparse to argparse. Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Use an empty pylintrc for tests using project's pylintrc implicitelyPierre Sassoulas2022-04-262-4/+5
| | | | | | | | | | We don't want to use the project's pylintrc during tests, because it means that a change in our config could break tests. But we want to see if the changes to the default break tests. Create a private '_Run' class in pylint.testutil._run Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add typing to ``BaseChecker`` ``msgs`` and ``reports`` (#6456)Daniël van Noord2022-04-251-1/+2
|
* Fix short ``-v`` flag and add ``metavar`` support to ``_CallableArgument`` ↵Daniël van Noord2022-04-191-0/+7
| | | | (#6386)
* Add exception handling for broken config files (#6351)Tushar Sadhwani2022-04-153-0/+5
|
* Add ``unrecognized-option`` message (#6330)Daniël van Noord2022-04-154-0/+28
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Increase coverage for ``argparse`` (#6331)Daniël van Noord2022-04-152-0/+38
| | | | | | * Fix coverage of ``pylint/config/arguments_manager.py`` * Fix coverage of ``pylint/config/utils.py`` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Deprecate ``get_global_option``Daniël van Noord2022-04-152-6/+10
|