Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't emit broken typing errors inside TYPE_CHECKING blocks (#5984) | Marc Mueller | 2022-03-26 | 1 | -0/+3 |
| | |||||
* | Loosen TypeVar name pattern (#5983) | Marc Mueller | 2022-03-26 | 1 | -0/+5 |
| | |||||
* | Fix false positive for `unused-argument` where nested function uses parent ↵ | Jacob Walls | 2022-03-26 | 1 | -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 Walls | 2022-03-26 | 1 | -0/+4 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix nonlocal in try block regression for `used-before-assignment` (#5966) | Jacob Walls | 2022-03-26 | 1 | -0/+4 |
| | |||||
* | Bump pylint to 2.13.0, update changelogv2.13.0 | Pierre Sassoulas | 2022-03-24 | 1 | -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 Noord | 2022-03-24 | 1 | -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 Noord | 2022-03-24 | 1 | -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 Finkler | 2022-03-22 | 1 | -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 Walls | 2022-03-21 | 1 | -0/+5 |
| | | | | function scope (#5937) | ||||
* | Add missing __magic__ methods to `_SPECIAL_METHODS_PARAMS` (#5941) | Joe Young | 2022-03-21 | 1 | -0/+2 |
| | |||||
* | Fix pyreverse type hints for methods returning None (#5916) | Téo Bouvard | 2022-03-19 | 1 | -0/+2 |
| | |||||
* | Optimize handling of long lines for checkers like 'missing-final-newline' ↵ | Sergey B Kirpichev | 2022-03-16 | 1 | -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 ↵ | yushao2 | 2022-03-15 | 1 | -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) | Arianna | 2022-03-14 | 1 | -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 Walls | 2022-03-13 | 1 | -0/+5 |
| | |||||
* | Add regression test for #5771 (#5908) | Jacob Walls | 2022-03-13 | 1 | -0/+6 |
| | |||||
* | Fix disabling of ``ungrouped-imports`` (#5903) | Daniël van Noord | 2022-03-12 | 1 | -0/+5 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Use ``node.position`` in ``add_message`` if available (#5897) | Daniël van Noord | 2022-03-12 | 1 | -0/+6 |
| | |||||
* | Fix false positive for `invalid-class-object` when inference fails (#5901) | Jacob Walls | 2022-03-12 | 1 | -0/+3 |
| | |||||
* | Add regression test for #5679 (#5725) | Daniël van Noord | 2022-03-12 | 1 | -0/+5 |
| | |||||
* | Add tests for #4826 (#5696) | Daniël van Noord | 2022-03-12 | 1 | -0/+6 |
| | |||||
* | Add regression test for issue #5408 (#5795) | Daniël van Noord | 2022-03-12 | 1 | -0/+6 |
| | |||||
* | Update ``astroid`` requirement to 2.11.0 | Daniël van Noord | 2022-03-12 | 1 | -0/+3 |
| | |||||
* | Add ``typevar-name-missing-variance`` checker (#5825) | Daniël van Noord | 2022-03-11 | 1 | -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 Walls | 2022-03-11 | 1 | -0/+4 |
| | | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> | ||||
* | Allow mccabe 0.7.x (#5896) | Konrad Weihmann | 2022-03-11 | 1 | -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 Mueller | 2022-03-10 | 1 | -0/+4 |
| | |||||
* | Add broken NoReturn check (#5304) | Marc Mueller | 2022-03-10 | 1 | -0/+7 |
| | |||||
* | Use the ``tomli`` package instead of ``toml`` to parse ``.toml`` (#5887) | Daniël van Noord | 2022-03-10 | 1 | -0/+4 |
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> | ||||
* | Fix pyreverse type hinting for class methods (#5881) | Téo Bouvard | 2022-03-09 | 1 | -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 Walls | 2022-03-08 | 1 | -0/+2 |
| | |||||
* | Restore the useful part of the python3 checker (#5843) | Pierre Sassoulas | 2022-03-08 | 1 | -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 Walls | 2022-03-06 | 1 | -0/+4 |
| | |||||
* | Allow disabling ``duplicate-code`` with a disable comment (#5446) | Daniël van Noord | 2022-03-04 | 1 | -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) | dbrookman | 2022-03-04 | 1 | -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 Sassoulas | 2022-02-27 | 1 | -0/+6 |
| | | | Closes #5486 | ||||
* | Add a test to check that no old msgid or symbol are used (#5839) | Pierre Sassoulas | 2022-02-26 | 1 | -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 Walls | 2022-02-17 | 1 | -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 Walls | 2022-02-17 | 1 | -0/+5 |
| | | | | by comprehension test (#5818) | ||||
* | Fix false negative for `used-before-assignment` when some except handlers ↵ | Jacob Walls | 2022-02-10 | 1 | -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 Walls | 2022-02-06 | 1 | -0/+5 |
| | |||||
* | Lint all files in a directory by expanding arguments (#5682) | Matus Valo | 2022-02-06 | 1 | -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) | orSolocate | 2022-02-02 | 1 | -0/+4 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix a false negative with tuple unpacking (#5708) | Mark Byrne | 2022-02-02 | 1 | -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 Walls | 2022-02-02 | 1 | -0/+6 |
| | | | | operators (#5748) | ||||
* | Add `iterating-modified-list` checker for modified lists (#5628) | orSolocate | 2022-02-01 | 1 | -0/+5 |
| | |||||
* | Clearer error message for useless-else-x type messages (#5736) | Pierre Sassoulas | 2022-01-30 | 1 | -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 Walls | 2022-01-29 | 1 | -0/+6 |
| | | | | type annotations or default arguments (#5727) | ||||
* | Emit the crash issue template for more exceptions and crashes (#5743) | Daniël van Noord | 2022-01-29 | 1 | -0/+5 |
| |