summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Finish some incomplete typing signatures (#7442)Daniël van Noord2022-09-0913-47/+63
|
* Merge maintenance 2.15.x in main following 2.15.2 release (#7432)Pierre Sassoulas2022-09-0911-9/+71
|\
| * Merge branch 'maintenance/2.15.x' following release of 2.15.2Pierre Sassoulas2022-09-0711-9/+71
| |\
| | * 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
* | | Finish some unfinished typing signaturesDaniël van Noord2022-09-097-17/+21
| | |
* | | Add typing to several test files (#7440)Daniël van Noord2022-09-098-16/+25
| | |
* | | Turn on ``check-untyped-defs`` in ``mypy`` (#7407)Daniël van Noord2022-09-0917-76/+132
| | |
* | | [towncrier] Add whitespaces between fragment in towncrier (#7431)Pierre Sassoulas2022-09-072-0/+2
|/ /
* | 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>
* | Suppress ``OSError`` in config file discovery (#7423)Daniël van Noord2022-09-063-10/+54
| |
* | Add regression test for dataclass kw_only support (#7413)Daniël van Noord2022-09-064-0/+35
| | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Make ``missing-yield/raises-doc`` respect ``no-docstring-rgx`` optionDaniël van Noord2022-09-065-3/+29
| |
* | Upgrade astroid version following 2.12.6 release (#7420)Pierre Sassoulas2022-09-069-9/+9
| |
* | [pre-commit.ci] pre-commit autoupdate (#7417)pre-commit-ci[bot]2022-09-061-3/+3
| | | | | | | | | | | | | | | | updates: - [github.com/myint/autoflake: v1.5.1 → v1.5.3](https://github.com/myint/autoflake/compare/v1.5.1...v1.5.3) - [github.com/psf/black: 22.6.0 → 22.8.0](https://github.com/psf/black/compare/22.6.0...22.8.0) - [github.com/DanielNoord/pydocstringformatter: v0.7.1 → v0.7.2](https://github.com/DanielNoord/pydocstringformatter/compare/v0.7.1...v0.7.2) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* | Update towncrier requirement from ~=21.9 to ~=22.8 (#7415)dependabot[bot]2022-09-052-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates the requirements on [towncrier](https://github.com/hawkowl/towncrier) to permit the latest version. - [Release notes](https://github.com/hawkowl/towncrier/releases) - [Changelog](https://github.com/twisted/towncrier/blob/trunk/NEWS.rst) - [Commits](https://github.com/hawkowl/towncrier/compare/21.9.0...22.8.0) --- updated-dependencies: - dependency-name: towncrier dependency-type: direct:production ... 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>
* | Bump black from 22.6.0 to 22.8.0 (#7416)dependabot[bot]2022-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [black](https://github.com/psf/black) from 22.6.0 to 22.8.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/22.6.0...22.8.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:production update-type: version-update:semver-minor ... 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>
* | Make ``disable-next`` only consider the succeeding line (#7411)Daniël van Noord2022-09-056-22/+54
| |
* | Fix and refactors for ``docparams`` extension (#7398)Daniël van Noord2022-09-045-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>
* | Make ``missing-return-doc`` respect the ``no-docstring-rgx`` option (#7410)Daniël van Noord2022-09-046-22/+54
| |
* | Add regression test for #3973 (#7409)Daniël van Noord2022-09-041-0/+6
| |
* | Emit `used-before-assignment` when function arguments are redefined inside ↵Jacob Walls2022-09-044-0/+31
| | | | | | | | an inner function
* | Add a code owner file to officialize knowledge about the code base (#7359)Pierre Sassoulas2022-09-041-0/+36
| | | | | | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* | Fix #3299 false positives with names in string literal type annotations (#7400)Levi Gruspe2022-09-0412-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
* | Add typing to ``unittest_config`` (#7404)Daniël van Noord2022-09-042-10/+18
| |
* | Complete typing of all generic types (#7406)Daniël van Noord2022-09-0415-56/+92
| | | | | | | | And update ``mypy`` configuration
* | Do not lint ignored file on stdin (#7220)Christoph Blessing2022-09-033-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>
* | Remove ignores for ``LocalPath``Daniël van Noord2022-09-034-4/+4
| |
* | Add typing to ``test_self``Daniël van Noord2022-09-032-14/+15
| |
* | Add typing to ``unittest_lint``Daniël van Noord2022-09-031-13/+14
| |
* | Add typing to ``test_regr``Daniël van Noord2022-09-031-5/+5
| |
* | Add typing to benchmark testsDaniël van Noord2022-09-032-12/+30
| |
* | Fix false positive for ``too-many-function-args`` when a function call is ↵Mark Byrne2022-09-023-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-08-314-4/+24
| | | | | | Co-authored-by: orSolocate <38433858+orSolocate@users.noreply.github.com>
* | [pre-commit.ci] pre-commit autoupdatepre-commit-ci[bot]2022-08-311-2/+2
| | | | | | | | | | | | updates: - [github.com/myint/autoflake: v1.4 → v1.5.1](https://github.com/myint/autoflake/compare/v1.4...v1.5.1) - [github.com/DanielNoord/pydocstringformatter: v0.7.0 → v0.7.1](https://github.com/DanielNoord/pydocstringformatter/compare/v0.7.0...v0.7.1)
* | Upgrade actions cache versionPierre Sassoulas2022-08-317-7/+7
| |