summaryrefslogtreecommitdiff
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
* Don't emit broken typing errors inside TYPE_CHECKING blocks (#5984)Marc Mueller2022-03-261-0/+3
|
* Loosen TypeVar name pattern (#5983)Marc Mueller2022-03-261-0/+5
|
* Fix false positive for `unused-argument` where nested function uses parent ↵Jacob Walls2022-03-261-1/+6
| | | | | | argument as a `nonlocal` (#5906) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Don't emit `raising-bad-type` when there is ambiguity (#5968)Jacob Walls2022-03-261-0/+4
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix nonlocal in try block regression for `used-before-assignment` (#5966)Jacob Walls2022-03-261-0/+4
|
* Bump pylint to 2.13.0, update changelogv2.13.0Pierre Sassoulas2022-03-241-14/+27
| | | | | | Create the release summary upgrade the release process. Bump pylint to 2.13.0, update changelog
* Create a ``TypeVar`` style for ``invalid-name`` (#5894)Daniël van Noord2022-03-241-0/+5
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Make ``arguments-differ`` check extra parameters for default values (#5539)Daniël van Noord2022-03-241-0/+5
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* ``pyreverse``: better error messages for unsupported file formats (#5951)Andreas Finkler2022-03-221-0/+4
| | | | | * Pyreverse: better error messages for unsupported file formats * Apply suggestions from code review.
* Fix #4590: `used-before-assignment` false positive for class definition in ↵Jacob Walls2022-03-211-0/+5
| | | | function scope (#5937)
* Add missing __magic__ methods to `_SPECIAL_METHODS_PARAMS` (#5941)Joe Young2022-03-211-0/+2
|
* Fix pyreverse type hints for methods returning None (#5916)Téo Bouvard2022-03-191-0/+2
|
* Optimize handling of long lines for checkers like 'missing-final-newline' ↵Sergey B Kirpichev2022-03-161-0/+4
| | | | | | | | | | | | | | (#5925) * Fix parsing of long lines when ``missing-final-newline`` is enabled * Adapt fa31b6b6 to be backward-compatible Fixes #5724 Also address comments from the PR PyCQA/pylint#5786 Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* fix(4756): fix false positive `unused-private-member` for private methods ↵yushao22022-03-151-0/+4
| | | | | | (#5345) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Introduce new 'import-private-name' checker (#5610)Arianna2022-03-141-0/+5
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add regression test for #5770 (#5846)Jacob Walls2022-03-131-0/+5
|
* Add regression test for #5771 (#5908)Jacob Walls2022-03-131-0/+6
|
* Fix disabling of ``ungrouped-imports`` (#5903)Daniël van Noord2022-03-121-0/+5
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Use ``node.position`` in ``add_message`` if available (#5897)Daniël van Noord2022-03-121-0/+6
|
* Fix false positive for `invalid-class-object` when inference fails (#5901)Jacob Walls2022-03-121-0/+3
|
* Add regression test for #5679 (#5725)Daniël van Noord2022-03-121-0/+5
|
* Add tests for #4826 (#5696)Daniël van Noord2022-03-121-0/+6
|
* Add regression test for issue #5408 (#5795)Daniël van Noord2022-03-121-0/+6
|
* Update ``astroid`` requirement to 2.11.0Daniël van Noord2022-03-121-0/+3
|
* Add ``typevar-name-missing-variance`` checker (#5825)Daniël van Noord2022-03-111-0/+4
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Yudaka <dakala@tuta.io>
* Prevent `useless-suppression` on disables for stdlib deprecation checker (#5876)Jacob Walls2022-03-111-0/+4
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Allow mccabe 0.7.x (#5896)Konrad Weihmann2022-03-111-0/+4
| | | | | | | | python version < 3.7 will still remain on mccabe 0.6.x, while newer version will pick mccabe 0.7.x release Closes #5878 Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
* Add broken Callable check (#5891)Marc Mueller2022-03-101-0/+4
|
* Add broken NoReturn check (#5304)Marc Mueller2022-03-101-0/+7
|
* Use the ``tomli`` package instead of ``toml`` to parse ``.toml`` (#5887)Daniël van Noord2022-03-101-0/+4
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Fix pyreverse type hinting for class methods (#5881)Téo Bouvard2022-03-091-0/+2
| | | | | | | | | | | | | | | * Fix pyreverse type hinting for class methods This commit fixes the alignment of arguments and their type annotations in pyreverse printer output. It does so by checking for the type of the current function rather than the name of the first argument. This allows class methods having a non-standard first argument (different from "self" or "cls") to be correctly serialized in class diagrams. * Add test for method with None args According to astroid docs, this happens for builtin functions implemented in C. In this case, we return an empty argument list.
* Add `distutils` to deprecated modules (#5864)Jacob Walls2022-03-081-0/+2
|
* Restore the useful part of the python3 checker (#5843)Pierre Sassoulas2022-03-081-0/+6
| | | | | | | * Reinstate checks from the python3 checker that are still useful for py3 Closes #5025 Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add stdlib xml.etree.cElementTree to deprecated modules (#5863)Jacob Walls2022-03-061-0/+4
|
* Allow disabling ``duplicate-code`` with a disable comment (#5446)Daniël van Noord2022-03-041-0/+5
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Fix matching note tags with a non-word char last (#5859)dbrookman2022-03-041-0/+4
| | | | | | | | | | | | | Using "\b" at the end of these patterns will only match note tags that end in an alphanumeric character, immediately followed by a non-alphanumeric character, or the end of the string. This is due to "\b" being defined as a boundary between a word character ("\w") and a non-word character ("\W"), or the end of the string. This leads to deviations like "???" being ignored when specified. Swapping "\b" for a positive lookahead that targets a whitespace, a colon, or the end of a string accounts for this. Closes #5840.
* Add a testutil extra-require and add gitpython to it (#5842)Pierre Sassoulas2022-02-271-0/+6
| | | Closes #5486
* Add a test to check that no old msgid or symbol are used (#5839)Pierre Sassoulas2022-02-261-0/+8
| | | | | | | | | | * Add deleted msgid and symbol from the Python 3K+ checker and other deleted checks. See https://github.com/PyCQA/pylint/pull/4942 Closes #5729 Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Fix #5112: Prevent `used-before-assignment` if named expression found first ↵Jacob Walls2022-02-171-0/+5
| | | | | in container (#5812) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix `used-before-assignment` false positive for except handler names shared ↵Jacob Walls2022-02-171-0/+5
| | | | by comprehension test (#5818)
* Fix false negative for `used-before-assignment` when some except handlers ↵Jacob Walls2022-02-101-0/+6
| | | | | don't define a name (#5764) Co-authored-by: Arianna <self@areveny.com>
* Fix crash in `use-maxsplit-arg` checker where `sep` given by keyword (#5772)Jacob Walls2022-02-061-0/+5
|
* Lint all files in a directory by expanding arguments (#5682)Matus Valo2022-02-061-0/+6
| | | | | | | * Added --recursive=y/n option and a mention in FAQ and user guide Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix assignment-from-none false negative case using list.sort() (#5738)orSolocate2022-02-021-0/+4
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix a false negative with tuple unpacking (#5708)Mark Byrne2022-02-021-4/+8
| | | | | Closes #5707 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix false positive `used-before-assignment` for named expressions in ternary ↵Jacob Walls2022-02-021-0/+6
| | | | operators (#5748)
* Add `iterating-modified-list` checker for modified lists (#5628)orSolocate2022-02-011-0/+5
|
* Clearer error message for useless-else-x type messages (#5736)Pierre Sassoulas2022-01-301-0/+4
| | | | | | | | | | * Clearer error message for useless-else-x type message See https://github.com/PyCQA/pylint/pull/5614#issuecomment-1023614434 for rationale. Closes #5598 Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Fix #5399: Fix false negatives for further variable messages for invalid ↵Jacob Walls2022-01-291-0/+6
| | | | type annotations or default arguments (#5727)
* Emit the crash issue template for more exceptions and crashes (#5743)Daniël van Noord2022-01-291-0/+5
|