summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | New checker `unbalanced dict unpacking` (#7750)Dani Alcala2022-11-2010-29/+231
| | | | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Fix ``deprecated-method`` false positive with aliases (#7795)Dani Alcala2022-11-194-16/+30
| | | | | | | | | | When alias for method is similar to name of deprecated method. Closes #5886
* | [github actions] Upgrade the documentation to handle cherry-pick conflictsPierre Sassoulas2022-11-191-0/+8
| |
* | [github actions] Fix the permissions in backporting jobPierre Sassoulas2022-11-191-0/+3
| |
* | Deprecation following the separation of emacs related file to ↵Pierre Sassoulas2022-11-1911-316/+70
| | | | | | | | | | | | | | https://github.com/emacsorphanage/pylint (#7783) Co-authored-by: Jonas Bernoulli <jonas@bernoul.li> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* | Better error message for unpacking-non-sequence and ↵Pierre Sassoulas2022-11-195-30/+29
| | | | | | | | | | | | | | | | unbalanced-tuple-unpacking (#7778) Necessary to be able to do https://github.com/PyCQA/pylint/pull/7750 without thinking about it. Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
* | Run primer on 3.11 (#7801)Jacob Walls2022-11-193-3/+3
| |
* | Fix `valid-metaclass-classmethod-first-arg` default value (#7791)Cubicpath2022-11-1911-15/+19
| | | | | | | | | | * Change default value to "mcs" * Fix functional tests to use "mcs" for first MetaClass classmethod arg
* | [primer] Fall back to no rcfile rather than pylint's (#7798)Jacob Walls2022-11-192-7/+13
| |
* | Merge maintenance/2.15.x in main following 2.15.6 release (#7799)Pierre Sassoulas2022-11-194-3/+52
|\ \
| * \ Merge branch 'maintenance/2.15.x' into main following 2.15.6 releasePierre Sassoulas2022-11-194-3/+52
| |\ \ |/ / / | | _
| * Release branch 2.15.6 (#7785)v2.15.6Pierre Sassoulas2022-11-1911-23/+51
| | | | | | | | | | * Bump pylint to 2.15.6, update changelog Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
| * Replace deprecated `sre_constants.error` with `re.error`Jacob Walls2022-11-171-3/+2
| |
| * Bump timeout for docs check [ci] (#7771)Marc Mueller2022-11-171-1/+1
| |
| * Suppress `stop-iteration-return` on `itertools.cycle` (#7766)Tushar Sadhwani2022-11-174-3/+12
| | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
| * Fix false positive for ``unhashable-member`` when subclassing ``dict``. (#7757)Mark Byrne2022-11-173-1/+10
| | | | | | | | | | Closes #7501 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
| * false positive `unnecessary-list-index-lookup` for enumerate (#7685)Dani Alcala2022-11-174-3/+113
| | | | | | | | | | | | | | * do not report unnecessary list index lookup if start arg is passed * account for calling start with 0 or negative num Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
| * Fix a crash when looking up an __init__ method (#7744)Mark Byrne2022-11-173-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix a crash when a child class with an ``__init__`` method inherits from a parent class with an ``__init__`` class attribute. * `continue` if not a method. * Update pylint/checkers/classes/class_checker.py * Rename fragment Closes #7742 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
| * Update Primer venv caching [ci] (#7708)Marc Mueller2022-11-175-17/+14
| | | | | | | | | | | | * Use release version for astroid * Use better cache key * Mirror create environment * Update comments
| * Improve Github action workflows (#7651)Marc Mueller2022-11-1710-129/+153
| | | | | | | | | | | | | | | | | | | | * Remove restore keys * Log pylint + astroid versions * Reset cache versions * Add check-latest to setup-python * Use pyproject.toml for hash * Update comment-hider version comment * Pin additional actions
| * Fix astroid error for custom ``next`` method (#7622)Dani Alcala2022-11-174-14/+65
| | | | | | | | | | * short-circuit if next method doesnt have args * check for builtins.next qname * add inference confidence level
| * Fix: reporters receive copy of message (#7620)Smixi2022-11-174-6/+57
| | | | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
| * Add 'py' to test requirements (#7692)Marc Mueller2022-11-171-1/+2
| |
| * Add PyPI deployment environment [ci] (#7676)Marc Mueller2022-11-171-0/+3
| |
| * Update pytest and pytest-benchmark following the 7.2.0 release (#7675)Marc Mueller2022-11-171-5/+2
| |
| * Pin pytest to resolve issue with pytest-benchmark (#7674)Marc Mueller2022-11-171-1/+4
| |
| * Fix astroid-error for parsing module encoding (#7663)Dani Alcala2022-11-176-2/+27
| | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
| * Confirm changes before tbump commit (#7666)Marc Mueller2022-11-171-0/+4
| |
* | Enable broad-try-clause check (#7796)Nick Drozd2022-11-182-1/+5
| |
* | Deduplicate module file paths to prevent redundant scans. (#7747)Eric McDonald2022-11-186-34/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use dict for 'expand_modules' result rather than list. With 'path' as the key, we get deduplication for free and do not need to reprocess the list for deduplication later. * Fix deduplication to account for CLI args marker. * Fix corner case with CLI arg flag handling during deduplication. * Add 'deduplication' to custom Pyenchant dict. Closes #6242 Closes #4053 Co-authored-by: Eric McDonald <emcd@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | [doc] Add link to Sublime Text integration (#7792)sur.la.route2022-11-181-0/+2
| |
* | Fix false positive for 'used-before-assignment' with terminating func (#7784)Dani Alcala2022-11-176-28/+51
| |
* | Fixes ``unnecessary-list-index-lookup`` false negative when ``enumerate`` is ↵Dani Alcala2022-11-174-3/+24
| | | | | | | | called with ``iterable`` as a kwarg. (#7789)
* | Fix false negatives for-any-all (#7707)Dani Alcala2022-11-175-21/+213
| |
* | [github actions] Set write permission for backport workflowPierre Sassoulas2022-11-171-0/+3
| | | | | | | | | | | | We also gave default write permissions for all jobs in the settings. The permissions were explicitely defined in each job already
* | [release process] Add a github actions to backport fix automatically (#7776)Pierre Sassoulas2022-11-162-10/+30
| | | | | | Based on https://github.com/tibdex/backport which seems awfully conveniant.
* | Improve bad-threading-instantiation check (#7617)Dani Alcala2022-11-154-7/+39
| |
* | [pre-commit.ci] pre-commit autoupdate (#7772)pre-commit-ci[bot]2022-11-151-2/+2
| | | | | | | | | | | | | | updates: - [github.com/asottile/pyupgrade: v3.2.0 → v3.2.2](https://github.com/asottile/pyupgrade/compare/v3.2.0...v3.2.2) - [github.com/rstcheck/rstcheck: v6.1.0 → v6.1.1](https://github.com/rstcheck/rstcheck/compare/v6.1.0...v6.1.1) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* | Bump timeout for docs check [ci] (#7771)Marc Mueller2022-11-141-1/+1
| |
* | Bump mypy from 0.982 to 0.990 (#7769)dependabot[bot]2022-11-1417-21/+19
| | | | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* | Improve `invalid-slice-index` and add `invalid-slice-step` (#7762)Marc Mueller2022-11-149-9/+78
| |
* | Suppress `stop-iteration-return` on `itertools.cycle` (#7766)Tushar Sadhwani2022-11-144-3/+12
| | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Fix false positive for ``unhashable-member`` when subclassing ``dict``. (#7757)Mark Byrne2022-11-143-1/+10
| | | | | | | | | | Closes #7501 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Add named-expr-without-context check (#7763)Marc Mueller2022-11-1410-3/+35
| |
* | Detect unreachable code after sys.exit, quit, exit, and os._exit (#7520)Dani Alcala2022-11-134-13/+97
| | | | | | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
* | Update documentation for checkers (#7764)Marc Mueller2022-11-133-6/+6
| |
* | Extend `consider-using-join` to detect non-empty separators (#7481)Levi Gruspe2022-11-135-11/+68
| |
* | Flag `superfluous-parens` if parentheses are used during string ↵Dani Alcala2022-11-1312-12/+58
| | | | | | | | concatenation (#7752)
* | false positive `unnecessary-list-index-lookup` for enumerate (#7685)Dani Alcala2022-11-134-3/+113
| | | | | | | | | | | | | | * do not report unnecessary list index lookup if start arg is passed * account for calling start with 0 or negative num Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Use qualified name when checking for overgeneral exceptions (#7497)Jakub Kuczys2022-11-1313-28/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update tests * Use qualified name when checking for overgeneral exceptions * WIP: Add deprecation warning * Add changelog fragment * Use qualified name in test case * spell check fix * Update changelog fragment with suggested fixes Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> * Move OVERGENERAL_EXCEPTIONS directly to the default value in dict * Mark as TODO for pylint 3.0 * Properly warn on each occurrence of name without dots * Update the warning per the review * Rephrase the warning to mention pylint 3.0 * Remove unnecessary nesting of the if condition * Quote the exception name in deprecation warning * Use config value for overgeneral exceptions in broad-exception-raised * Infer qualified name of the exception in broad-exception-raised * e.g. -> maybe? Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> * Suppress missing class docstrings * Add few more tests for broad-exception-raised Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> * Fix unexpected missing-raise-from * Revert "Fix unexpected missing-raise-from" This reverts commit d796e72035b7f7578b9e6bb1e45a30935e80b009. * Revert "Add few more tests for broad-exception-raised" This reverts commit e5a193ee136f8566d43450fbb9fbf28cc717d307. * Change confidence of broad-exception-raised from HIGH to INFERENCE * Only trigger broad-exception-raised for raise with new exc instance * Update overgeneral-exceptions definition in example pylintrc file * Update pylint/checkers/exceptions.py Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>