Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Search for pyproject.toml config file in parent dirs (#7163) | Mikhail f. Shiryaev | 2023-04-30 | 1 | -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 Sassoulas | 2023-03-29 | 22 | -37/+37 |
| | |||||
* | [deprecation] ``setup.cfg``and ``tox.ini`` sections need to start by ↵ | Pierre Sassoulas | 2023-03-20 | 2 | -6/+0 |
| | | | | 'pylint' (#8465) | ||||
* | Remove deprecated functions and classes (#8409) | Daniël van Noord | 2023-03-09 | 1 | -33/+0 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Remove all old code related to ``optparse`` config parsing. (#8405) | Daniël van Noord | 2023-03-08 | 3 | -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 Sassoulas | 2023-02-26 | 2 | -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) | Ollie | 2023-02-25 | 2 | -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 Walls | 2022-12-05 | 1 | -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' Balhar | 2022-11-23 | 1 | -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 Tosi | 2022-10-03 | 1 | -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 Noord | 2022-10-02 | 1 | -4/+3 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Add ``minimal`` option to ``pylint-config`` (#7489) | Daniël van Noord | 2022-09-19 | 1 | -0/+40 |
| | | | Co-authored-by: Christian Clauss <cclauss@me.com> | ||||
* | Finish unfinished typing in non core directories (#7443) | Daniël van Noord | 2022-09-09 | 1 | -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 Noord | 2022-09-09 | 1 | -2/+2 |
| | |||||
* | Suppress ``OSError`` in config file discovery (#7423) | Daniël van Noord | 2022-09-06 | 1 | -0/+9 |
| | |||||
* | Add typing to ``unittest_config`` (#7404) | Daniël van Noord | 2022-09-04 | 1 | -6/+6 |
| | |||||
* | Remove ignores for ``LocalPath`` | Daniël van Noord | 2022-09-03 | 1 | -1/+1 |
| | |||||
* | Replace deprecated `sre_constants.error` with `re.error` | Jacob Walls | 2022-08-27 | 1 | -3/+2 |
| | |||||
* | Fix crash when regex option raises a `re.error` exception. (#7228) | Mark Byrne | 2022-07-31 | 1 | -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 Williamson | 2022-07-12 | 1 | -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 flags | Daniël van Noord | 2022-06-30 | 1 | -0/+10 |
| | |||||
* | Fix recognition of config files named ``setup.cfg`` (#3630) (#6577) | Pierre Sassoulas | 2022-06-29 | 6 | -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 Noord | 2022-06-23 | 2 | -0/+5 |
| | | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> | ||||
* | Mix incorrect parsing of multi-line options in ``ini`` files | Daniël van Noord | 2022-06-13 | 2 | -1/+8 |
| | |||||
* | [bad-option-value] Add a 'useless-option-value' message | Pierre Sassoulas | 2022-06-06 | 12 | -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 Sassoulas | 2022-06-04 | 6 | -11/+11 |
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Store namespaces respective to directories (#6789) | Daniël van Noord | 2022-06-04 | 1 | -0/+24 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | [deleted messages] Add an exception for deleted messages in MessageIdStore | Pierre Sassoulas | 2022-06-04 | 3 | -0/+23 |
| | |||||
* | Fix the use of abbreviations for preprocessable options on the CLI (#6820) | Daniël van Noord | 2022-06-03 | 1 | -0/+15 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix parsing of unrelated options in tox.ini (#6801) | Daniël van Noord | 2022-06-03 | 2 | -0/+19 |
| | |||||
* | Don't crash if we can't find the user's home directory (#6806) | Daniël van Noord | 2022-06-02 | 1 | -0/+15 |
| | |||||
* | Allow specifying an output file when generating a configuration file (#6662) | Daniël van Noord | 2022-05-22 | 1 | -0/+83 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Add ``ParamSpec`` to decorator | Daniël van Noord | 2022-05-22 | 1 | -3/+3 |
| | |||||
* | Retry user input if it is not correct | Daniël van Noord | 2022-05-22 | 2 | -3/+38 |
| | |||||
* | Add ``generate`` subparser to ``pylint-config`` | Daniël van Noord | 2022-05-21 | 1 | -0/+69 |
| | |||||
* | Add setup and --help command to pylint-config | Daniël van Noord | 2022-05-21 | 1 | -0/+44 |
| | |||||
* | Add invocation test | Daniël van Noord | 2022-05-21 | 1 | -0/+24 |
| | |||||
* | Use main instead of master as main checker name (#6569) | Daniël van Noord | 2022-05-10 | 3 | -4/+4 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix behavior of empty `--confidence` option | Jacob Walls | 2022-05-05 | 1 | -0/+7 |
| | |||||
* | Disable duplicate-code warnings | Marc Mueller | 2022-05-05 | 1 | -0/+5 |
| | |||||
* | Exit gracefully for unrecognized command line options (#6506) | Daniël van Noord | 2022-05-05 | 1 | -5/+6 |
| | |||||
* | Fix the loading of unrelated tools options (#6356) | Pierre Sassoulas | 2022-05-05 | 8 | -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 Sassoulas | 2022-05-05 | 2 | -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 implicitely | Pierre Sassoulas | 2022-04-26 | 2 | -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 Noord | 2022-04-25 | 1 | -1/+2 |
| | |||||
* | Fix short ``-v`` flag and add ``metavar`` support to ``_CallableArgument`` ↵ | Daniël van Noord | 2022-04-19 | 1 | -0/+7 |
| | | | | (#6386) | ||||
* | Add exception handling for broken config files (#6351) | Tushar Sadhwani | 2022-04-15 | 3 | -0/+5 |
| | |||||
* | Add ``unrecognized-option`` message (#6330) | Daniël van Noord | 2022-04-15 | 4 | -0/+28 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Increase coverage for ``argparse`` (#6331) | Daniël van Noord | 2022-04-15 | 2 | -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 Noord | 2022-04-15 | 2 | -6/+10 |
| |