summaryrefslogtreecommitdiff
path: root/pylint/config
Commit message (Collapse)AuthorAgeFilesLines
* Fix a false negative for ``too-many-arguments`` and positional-only and ↵Mark Byrne2023-05-151-0/+5
| | | | | | | | keyword-only arguments (#8674) Closes #8667
* Search for pyproject.toml config file in parent dirs (#7163)Mikhail f. Shiryaev2023-04-301-1/+29
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Make sure a ``tool`` table is created in ``toml`` generation (#8638)Daniël van Noord2023-04-301-1/+4
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Drop support for Python 3.7 (#8609)Marc Mueller2023-04-242-14/+2
| | | | | * Drop support for Python 3.7 * Update py-version + classifier * Update functional tests
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-2918-36/+36
|
* Add explicit 'stack_level' keyword in Deprecation/User warningsPierre Sassoulas2023-03-211-0/+1
|
* [deprecation] ``setup.cfg``and ``tox.ini`` sections need to start by ↵Pierre Sassoulas2023-03-201-17/+6
| | | | 'pylint' (#8465)
* [deprecation] Remove the warning about the old pylint home (#8462)Pierre Sassoulas2023-03-201-3/+2
| | | Also remove related tests, and simplify existing one
* [ruff] Add RUF specific rules and autofix (#8449)Pierre Sassoulas2023-03-141-1/+1
|
* Remove all old code related to ``optparse`` config parsing. (#8405)Daniël van Noord2023-03-0813-1542/+26
| | | | | * Remove all old config parsing code * Temporarily disable a test
* [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-022-3/+5
| | | 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>
* Fixing some too long lines (#8339)Ollie2023-02-251-2/+2
| | | | | * Changing flake8 max-line-length to 120 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Support globbing patterns for source-roots (#8281)Alexey Pelykh2023-02-212-7/+8
| | | Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com>
* Support Implicit Namespace Packages (PEP 420) (#8153)Alexey Pelykh2023-02-092-0/+14
| | | Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com>
* [ruff] Disable a Star-arg unpacking in a deprecated functionPierre Sassoulas2023-02-061-1/+1
|
* [ruff] B904 Raise exceptions with 'raise ... from err'Pierre Sassoulas2023-02-061-1/+1
|
* Fix inconsistent argument exit code when argparse exit with its own error ↵David Lawson2022-12-142-4/+10
| | | | | | | | | | | | | | | | | | | | | | 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>
* Bump mypy from 0.982 to 0.990 (#7769)dependabot[bot]2022-11-142-3/+3
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* [use-implicit-booleaness] Fix comparison to empty strings across the ↵Pierre Sassoulas2022-11-071-1/+1
| | | | | codebase (#7722) As it will become a default check in #6870 it will be easier to review it if we separate the two
* Use new symbolic name instead of the old names (#7728)Dani Alcala2022-11-071-1/+1
|
* Rename `broad-except` and new check `broad-exception-raised` (#7709)Dani Alcala2022-11-051-1/+1
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Sort --generate-rcfile outputMarc Mueller2022-10-211-2/+5
|
* 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>
* Hotfix mypy precommit errors for colorama and typing on Windows (#7531)orSolocate2022-09-271-0/+2
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add ``minimal`` option to ``pylint-config`` (#7489)Daniël van Noord2022-09-193-13/+30
| | | Co-authored-by: Christian Clauss <cclauss@me.com>
* Accept a comma-separated list of messages IDs in ``--help-msg`` (#7490)Daniël van Noord2022-09-191-1/+5
|
* Provide more context in these two DeprecationWarning.Yilei Yang2022-09-161-2/+4
| | | | | | Since this is called a few frame levels inside Pylint, providing the context of what optdict= can help with finding where the option originally comes from. This is a follow-up to #7465
* Use stacklevel=2 in warnings.warn calls to DeprecationWarning where makes ↵Yilei "Dolee" Yang2022-09-159-0/+38
| | | | | | | | sense. (#7465) Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Turn on ``mypy`` strict mode 🎉 (#7448)Daniël van Noord2022-09-092-2/+2
| | | | | | | | | | * Ignore subclasses of Any * Add ignores for imported code and remove casts * Add disables for uninferable return values * Turn on ``mypy`` strict mode
* Finish typing across the codebaseDaniël van Noord2022-09-091-2/+4
|
* Add typing to deprecated modulesDaniël van Noord2022-09-092-38/+66
|
* Fix return type of ``_parse_rich_type_value``Daniël van Noord2022-09-091-1/+1
|
* Add ``Any`` typing to deprecated methodsDaniël van Noord2022-09-092-4/+11
|
* Finish some unfinished typing signaturesDaniël van Noord2022-09-094-6/+8
|
* Turn on ``check-untyped-defs`` in ``mypy`` (#7407)Daniël van Noord2022-09-097-25/+38
|
* Suppress ``OSError`` in config file discovery (#7423)Daniël van Noord2022-09-061-10/+42
|
* Add typing to ``unittest_config`` (#7404)Daniël van Noord2022-09-041-4/+12
|
* Fix crash when regex option raises a `re.error` exception. (#7228)Mark Byrne2022-07-311-2/+11
| | | | | | | Closes #7202 * Apply the regex validation to comma-separated regular expression option values. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Bump or remove some ``TODOs`` (#7141)Daniël van Noord2022-07-071-1/+2
|
* Fix handling of ``--`` as separator of positional arguments and flagsDaniël van Noord2022-06-301-1/+2
|
* Fix recognition of config files named ``setup.cfg`` (#3630) (#6577)Pierre Sassoulas2022-06-291-4/+4
| | | 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-231-1/+1
| | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Fix typo in option processingJacob Walls2022-06-231-1/+1
|
* Mix incorrect parsing of multi-line options in ``ini`` filesDaniël van Noord2022-06-132-2/+1
|
* Mark `no-self-use` as moved to extensions (#6932)Jacob Walls2022-06-131-1/+4
| | | | | | * Mark `no-self-use` as deleted (moved to extensions) * Separate notions of deleted messages from moved messages Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [bad-option-value] Add a 'useless-option-value' messagePierre Sassoulas2022-06-061-3/+7
| | | | | | | 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
* [refactor] Callback for disabling or enabling option use a base classPierre Sassoulas2022-06-051-21/+34
|
* [refactor] Change the name of the stashed messages list in PyLinterPierre Sassoulas2022-06-052-7/+7
|