summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Check `` py-version`` for async ``unnecessary-dunder-call`` (#7549)Daniël van Noord2022-10-107-97/+147
|
* Fix crash in ``modified_iterating`` checker for set defined as a class ↵Dani Alcala2022-10-104-19/+40
| | | | | | | attribute (#7541) Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Prevent `redefined-outer-name` for `if t.TYPE_CHECKING`Jacob Walls2022-10-103-5/+15
|
* Fix bug in detecting ``unused-variable`` when iterating on variable. (#7537)Dani Alcala2022-10-103-1/+17
| | | Closes #3044
* Replace no-method-argument with no-self-argument when variadic args present ↵Jakub Kuczys2022-10-1010-13/+48
| | | | | | (#7518) Also add method name to the error message
* [release notes] Permit to have multiple section with the same namePierre Sassoulas2022-10-101-0/+4
|
* Bump pylint to 2.15.3, update changelogv2.15.3Pierre Sassoulas2022-09-199-21/+26
|
* Bump astroid to 2.12.10Pierre Sassoulas2022-09-199-10/+12
|
* Fix `undefined-loop-variable` with `NoReturn` and `Never` (#7476)Daniël van Noord2022-09-198-18/+96
| | | | | Co-authored-by: detachhead <detachhead@users.noreply.github.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Accept a comma-separated list of messages IDs in ``--help-msg`` (#7490)Daniël van Noord2022-09-193-1/+9
|
* False positive `global-variable-not-assigned` (#7479)Mark Byrne2022-09-196-18/+22
| | | | | | | * Fix false positive for ``global-variable-not-assigned`` when a global variable is re-assigned via a ``ImportFrom`` node. Closes #4809 Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* [invalid-class-object] Fix crash when __class__ is defined with a tuplePierre Sassoulas2022-09-194-3/+63
| | | | Closes #7467
* Fix a crash in the `modified-iterating-dict` checker involving instance ↵Jacob Walls2022-09-193-4/+23
| | | | attributes (#7472)
* Fix `unhashable-member` crash when `lambda` used as a dict key (#7454)Jacob Walls2022-09-193-0/+6
|
* Bump pylint to 2.15.2, update changelogv2.15.2Pierre Sassoulas2022-09-075-12/+19
|
* Upgrade astroid version following 2.12.9 releasePierre Sassoulas2022-09-079-9/+9
|
* Add more cases that emit bad-plugin-value (#7284)Drummond Ogilvie2022-09-074-15/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add x-failing test for issue 7264 case 3 This is the case where a plugin can be imported only after the init-hook is run, and the init hook is specified in a pylintrc file We would expect the module to not load in any case, and cause the emission of a bad-plugin-value message. * _dynamic_plugins is a dict not a set This is in preparation for caching the loaded modules, and for storing other information that will help in identifying times loading is dependent on init-hook magic. * Use cached module objects for load_configuration This fixes case 3 in #7264, and is technically a breaking change, in that it now emits a message for what would have previously been a silent failure. * Interim review comment fixes 1. Remove the xfail that snuck back in after the rebases. 2. Now that fake_home yields a str, update the type hint. * Add test for bad plugin with duplicated load This is case 6 in issue #7264, and represents the other silent failure that is being made non-silent by this change. * Apply review feedback - Add an ordering test for CLI arguments - Add clarifying comments on affected functions - Tidy up test assertions to be more pythonic Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Bump pylint to 2.15.1, update changelogv2.15.1Pierre Sassoulas2022-09-0611-29/+47
|
* Fix and refactors for ``docparams`` extension (#7398)Daniël van Noord2022-09-065-22/+53
| | | | | | | | | | | * Fix and refactors for ``docparams`` extension The ``re_only_desc`` regex did not match for white and characters after ``\n``, so some description-only lines weren't getting matched. In addition, lookaheads were added to ``re_param_line`` (i.e. make sure the type group is not followed by a new line (``\n``)). Lastly, named groups (ala Perl regular expressions) were added for slightly improved clarity. Co-authored-by: Hendry, Adam <adam.grant.hendry@gmail.com>
* Fix 2.15 changelog (#7369)Marc Mueller2022-09-062-4/+4
|
* Suppress ``OSError`` in config file discovery (#7423)Daniël van Noord2022-09-063-10/+54
|
* Make ``missing-yield/raises-doc`` respect ``no-docstring-rgx`` optionDaniël van Noord2022-09-065-3/+29
|
* Upgrade astroid version following 2.12.8 releasePierre Sassoulas2022-09-069-10/+10
|
* Make ``disable-next`` only consider the succeeding line (#7411)Daniël van Noord2022-09-066-22/+54
|
* Make ``missing-return-doc`` respect the ``no-docstring-rgx`` option (#7410)Daniël van Noord2022-09-066-22/+54
|
* Fix #3299 false positives with names in string literal type annotations (#7400)Levi Gruspe2022-09-0612-1/+167
| | | | | Don't emit 'unused-variable' or 'unused-import' on names in string literal type annotations (#3299) Don't treat strings inside typing.Literal as names
* Do not lint ignored file on stdin (#7220)Christoph Blessing2022-09-063-6/+28
| | | | | | Previously pylint would lint a file passed on stdin even if the user meant to ignore the file. This commit fixes that issue. Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Fix false positive for ``too-many-function-args`` when a function call is ↵Mark Byrne2022-09-063-1/+34
| | | | | assigned to a class attribute inside the class where the function is defined. (#7395) Closes #6592
* Fix crash while iteraring over a class attribute (#7386)Daniël van Noord2022-09-064-4/+24
| | | Co-authored-by: orSolocate <38433858+orSolocate@users.noreply.github.com>
* Fix `used-before-assignment` for functions/classes defined in type checking ↵Rogdham2022-09-064-12/+28
| | | | | | guard Close #7368
* Bump pylint to 2.16.0-dev, update changelog (#7363)Pierre Sassoulas2022-08-265-4/+21
|
* Bump pylint to 2.15.0, update changelog (#7355)v2.15.0Pierre Sassoulas2022-08-2642-135/+175
| | | * Add Marc Byrne to the maintainer team
* Update `tox.ini` (#7358)Mark Byrne2022-08-261-6/+4
| | | | | | - Install `requirements_test.txt` into `formatting` & `pylint` environments. `import-error` was showing during the `pylint` run for `contributors-txt` & `colorama` in these two environments. - Bump `minversion` to match the version in `requirements_test.txt`. - Bump `pre-commit` dependency version in the `mypy` environment to match the version in `requirements_test.txt`.
* [literal-comparison] Cleanup of identical/duplicated functional testsPierre Sassoulas2022-08-252-21/+4
|
* [literal-comparison] Make the message explicit with the solutionPierre Sassoulas2022-08-257-26/+43
| | | | | | Also update the confidence Closes #5237
* Upgrade astroid version following 2.12.4 release (#7356)Pierre Sassoulas2022-08-259-9/+9
|
* Add tests for PyCQA#5767Daniël van Noord2022-08-243-0/+32
|
* Bump TODOs to the next minor version in preparation of release (#7349)Daniël van Noord2022-08-242-2/+2
|
* Revert "[test] Temporary xfail deprecated methods py36 on pypy (#7244)" (#7345)Pierre Sassoulas2022-08-232-7/+0
| | | This reverts commit 90884856a3e2c3531d678a31a4455270a75bc6c7.
* Upgrade astroid version following 2.12.3 release (#7344)Pierre Sassoulas2022-08-239-9/+9
|
* [pre-commit.ci] pre-commit autoupdatepre-commit-ci[bot]2022-08-221-2/+2
| | | | | | updates: - [github.com/pre-commit/mirrors-prettier: v2.7.1 → v3.0.0-alpha.0](https://github.com/pre-commit/mirrors-prettier/compare/v2.7.1...v3.0.0-alpha.0) - [github.com/DanielNoord/pydocstringformatter: v0.6.2 → v0.7.0](https://github.com/DanielNoord/pydocstringformatter/compare/v0.6.2...v0.7.0)
* Use permanent links in the primer comment (#7332)Daniël van Noord2022-08-2210-157/+194
|
* Bump actions/cache from 3.0.7 to 3.0.8 (#7337)dependabot[bot]2022-08-227-21/+21
| | | | | | | | | | | | | | | | | | Bumps [actions/cache](https://github.com/actions/cache) from 3.0.7 to 3.0.8. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3.0.7...v3.0.8) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Don't emit ``trailing-whitespace`` twice for multi-line docstrings (#7335)Daniël van Noord2022-08-224-8/+33
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Check for ``contextlib.suppress`` in ``node_ignores_exception`` (#7327)Daniël van Noord2022-08-224-5/+91
|
* Skip ``unnecessary-list-index-lookup`` if we encounter if statements (#7334)Daniël van Noord2022-08-223-0/+21
|
* Fix ``mypy`` issues in primerDaniël van Noord2022-08-212-12/+14
|
* Use warningsDaniël van Noord2022-08-211-2/+5
|
* Fix up the message about ``astroid-error`` in the commentDaniël van Noord2022-08-211-4/+2
|
* Remove warning on failed primer comment runDaniël van Noord2022-08-211-7/+0
|