Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [PyCQA migration] Upgrade links to the repositories in code and doc (#8514) | Pierre Sassoulas | 2023-03-29 | 1 | -2/+2 |
| | |||||
* | [ruff] Add RUF specific rules and autofix (#8449) | Pierre Sassoulas | 2023-03-14 | 1 | -1/+1 |
| | |||||
* | Use UninferableBase instead of Uninferable | Daniel van Noord | 2023-03-07 | 1 | -4/+4 |
| | |||||
* | "Message emitted" improvements caused issues | Stavros Ntentos | 2023-02-22 | 1 | -1/+1 |
| | | | | | | | | | | Wrapping "Message emitted" in monospaced formatting, causes `W1507` (`pylint/checkers/stdlib.py`) to fail on a stray space. Fix that - as it seems to be the only outlier. (Might've been nice for a more formal check in the first place š). Signed-off-by: Stavros Ntentos <133706+stdedos@users.noreply.github.com> | ||||
* | Tighten design constraints (#8115) | Nick Drozd | 2023-01-28 | 1 | -0/+1 |
| | | | | | | | | | | | | | * Lower max locals * Lower max statements * Lower max try statements * Lower max branches * Lower max args * Cut design constraints with default values | ||||
* | [subprocess-run-check] Add the proper confidence | Pierre Sassoulas | 2023-01-23 | 1 | -1/+2 |
| | |||||
* | [subprocess-run-check] Better rationale and message | Pierre Sassoulas | 2023-01-23 | 1 | -4/+5 |
| | |||||
* | Fixes ``method-cache-max-size-none`` false positive (#7908) | Dani Alcala | 2022-12-09 | 1 | -3/+7 |
| | | | | | | | For methods inheriting from ``Enum``. Closes #7857 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Improve bad-threading-instantiation check (#7617) | Dani Alcala | 2022-11-15 | 1 | -3/+9 |
| | |||||
* | @singledispatch and @singledispatchmethod checks for methods and functions āµ | Ramon Saraiva | 2022-10-31 | 1 | -1/+50 |
| | | | | | | (#7575) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Add additional stdlib deprecations (#7664) | Jacob Walls | 2022-10-23 | 1 | -1/+9 |
| | |||||
* | Add typing to ``stdlib`` checker (#7192) | Daniƫl van Noord | 2022-07-15 | 1 | -27/+41 |
| | |||||
* | Add whitespace/punctuation to some message descriptions (#7009) | Julthep Nandakwang | 2022-06-23 | 1 | -5/+5 |
| | |||||
* | Add support of sharing message in multiple checkers. Fix DeprecatedChecker āµ | Matus Valo | 2022-06-16 | 1 | -2/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | example (#6693) * Move message definitions from DeprecatedMixin * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Added typing and fixed unittests * Make DEPRECATED_MSGS and DEPRECATED_IMPORT_MSG class variables to make pylint happy * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Introduce shared messages * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Change Message codes in DeprecatedMixin to W49XX * Make mypy happy * Make pylint happy * Add support for building documentation for shared messages * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Make isort happy * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Circuvent isort * Move shared to extra message options and fix tests * Update deprecation_checker example * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update doc/exts/pylint_messages.py Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> * Update doc/exts/pylint_messages.py Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> * Make messages static class attributes * Keep MessageDefinition backward compatible * Apply suggestions from code review Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Remove duplicate message definitions | Daniƫl van Noord | 2022-05-05 | 1 | -22/+1 |
| | |||||
* | Create a generic ``_check_open_call`` function | Daniƫl van Noord | 2022-05-04 | 1 | -32/+23 |
| | |||||
* | Add python 3.11 deprecations from stdlib (#6453) | Jacob Walls | 2022-04-25 | 1 | -0/+18 |
| | |||||
* | [typing] Add typing to existing function in stdlib checker | Pierre Sassoulas | 2022-04-22 | 1 | -1/+1 |
| | |||||
* | Migrate from 'check_messages' to 'only_required_for_messages' (#6417) | Pierre Sassoulas | 2022-04-21 | 1 | -6/+6 |
| | |||||
* | Fix crash when open is called with an integer mode (#6415) | Pierre Sassoulas | 2022-04-21 | 1 | -1/+1 |
| | | | Closes #6414 | ||||
* | Remove ``IAstroidChecker`` from ``__implements__`` | Daniƫl van Noord | 2022-04-19 | 1 | -2/+0 |
| | |||||
* | Rename ``cache-max-size-none`` and check ``functools.cache`` (#6182) | Daniƫl van Noord | 2022-04-19 | 1 | -14/+23 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix enabling `deprecated-module` after `disable=all` (#6360) | Jacob Walls | 2022-04-18 | 1 | -19/+3 |
| | | | Follow-up to fabc645. | ||||
* | Use ``python-typing-update`` on ``pylint/checkers`` directory | Daniƫl van Noord | 2022-04-14 | 1 | -12/+12 |
| | |||||
* | Update broken and redirected links across the project | Daniƫl van Noord | 2022-04-13 | 1 | -1/+1 |
| | |||||
* | Make ``linter`` non-optional for ``BaseChecker`` (#6188) | Daniƫl van Noord | 2022-04-11 | 1 | -1/+1 |
| | |||||
* | Only emit ``lru-cache-decorating-method`` when ``maxsize`` is ``None`` (#6181) | Daniƫl van Noord | 2022-04-05 | 1 | -13/+15 |
| | | | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Add bad-open-mode and unspecified-encoding documentation (#5954) | Daniƫl van Noord | 2022-03-24 | 1 | -1/+1 |
| | | | | Co-authored-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com> | ||||
* | Add a pre-commit hook to check the copyright notice | Pierre Sassoulas | 2022-03-24 | 1 | -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 notice | Pierre Sassoulas | 2022-03-24 | 1 | -34/+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. | ||||
* | Upgrade ``pydocstringformatter`` to ``0.5.0`` (#5910) | Daniƫl van Noord | 2022-03-13 | 1 | -3/+1 |
| | |||||
* | Prevent `useless-suppression` on disables for stdlib deprecation checker (#5876) | Jacob Walls | 2022-03-11 | 1 | -9/+11 |
| | | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> | ||||
* | Add `distutils` to deprecated modules (#5864) | Jacob Walls | 2022-03-08 | 1 | -0/+7 |
| | |||||
* | Add stdlib xml.etree.cElementTree to deprecated modules (#5863) | Jacob Walls | 2022-03-06 | 1 | -0/+1 |
| | |||||
* | Make ``lru-cache-decorating-method`` look for ``maxsize`` argument (#5791) | Daniƫl van Noord | 2022-02-14 | 1 | -6/+18 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Improved `bad-open-mode` message when providing ``None`` to the ``mode`` āµ | Jacob Walls | 2022-01-29 | 1 | -1/+5 |
| | | | | argument of an `open()` call (#5742) | ||||
* | Create separate documentation page for each message (#5396) | Daniƫl van Noord | 2022-01-28 | 1 | -4/+4 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix crash when providing None to mode arg of open() (#5732) | Jacob Walls | 2022-01-27 | 1 | -1/+1 |
| | |||||
* | Fix false positive ``super-init-not-called`` for inherited ``init`` (#5698) | Daniƫl van Noord | 2022-01-24 | 1 | -3/+1 |
| | | | And remove useless suppressed messages | ||||
* | Add ``lru-cache-decorating-method`` checker (#5674) | Daniƫl van Noord | 2022-01-14 | 1 | -1/+42 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix #5638: Allow for encoding to be supplied as a positional argument (#5641) | Jacob Walls | 2022-01-06 | 1 | -5/+14 |
| | |||||
* | Add typing and uniformize the checker registering in Pylinter (#5558) | Pierre Sassoulas | 2021-12-27 | 1 | -5/+6 |
| | | | | | Remove verbose docstring in code, keep them in example and doc Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> | ||||
* | Activate and fix existing use-set-for-membership checks (#5379) | Pierre Sassoulas | 2021-11-25 | 1 | -1/+1 |
| | | | | * Activate and fix existing use-set-for-membership checks | ||||
* | Fix crash on ``open()`` calls for non-string ``mode`` arguments (#5332) | Daniƫl van Noord | 2021-11-20 | 1 | -1/+6 |
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> | ||||
* | Add ``no-implicit-optional`` flag to ``mypy`` (#5075) | Daniƫl van Noord | 2021-09-26 | 1 | -2/+2 |
| | |||||
* | Fix ``unspecified-encoding`` for ``Path.read_text()`` | Daniƫl van Noord | 2021-09-17 | 1 | -3/+8 |
| | | | | Closes #5029 | ||||
* | Fix ``unspecified-encoding`` for `Path()` | Daniƫl van Noord | 2021-09-16 | 1 | -3/+10 |
| | | | | This closes #5017 | ||||
* | Bump pylint to 2.11.0, update changelogv2.11.0 | Pierre Sassoulas | 2021-09-16 | 1 | -1/+1 |
| | |||||
* | Refactor various typing related issues (#4940) | Daniƫl van Noord | 2021-09-03 | 1 | -7/+11 |
| | | | | | | | | | | | | | | | * Add type annotations to ``visit`` & ``leave`` calls This adds typing to most calls that visit nodes. All other changes are due to mypy errors resulting from introduction of typing. * Fix outstanding mypy issues This removes some of the `type: ignore` comments in favour of solving the mypy issues these comments were surpressing. * Fix remaining references to node_classes Except for two references to node_classes in the changelog this should be the last of them Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Extend ``unspecified-encoding`` checker | Daniƫl van Noord | 2021-09-01 | 1 | -3/+3 |
| | | | | | | The ``unspecified-encoding`` checker now also checks calls to ``pathlib.Path().read_text()`` and ``pathlib.Path().write_text()`` This closes #4945 |