Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update pylint/lint/expand_modules.pyemacs-dangling-temporary-file | Pierre Sassoulas | 2021-12-20 | 1 | -0/+1 |
| | |||||
* | Apply suggestions from code review | Pierre Sassoulas | 2021-12-20 | 6 | -11/+13 |
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Patch copy under python < 3.8 | Pierre Sassoulas | 2021-12-19 | 1 | -0/+7 |
| | | | | See https://stackoverflow.com/a/56935186 | ||||
* | Fix typoes encountered while fixing deepcopy's iissue with re | Pierre Sassoulas | 2021-12-19 | 2 | -3/+3 |
| | |||||
* | Add functional tests | Pierre Sassoulas | 2021-12-19 | 6 | -2/+12 |
| | |||||
* | Take review into account | Pierre Sassoulas | 2021-12-19 | 4 | -6/+6 |
| | |||||
* | Ignore file that starts like emacs's file lock | Pierre Sassoulas | 2021-12-19 | 4 | -1/+19 |
| | | | | Closes #367 | ||||
* | Fix 'path' shadowing variable from outter scope | Pierre Sassoulas | 2021-12-19 | 1 | -2/+2 |
| | |||||
* | Update default evaluation formula to match that in default pylintrc (#5553) | Jacob Walls | 2021-12-19 | 1 | -3/+3 |
| | |||||
* | Check if decorator returns use keyword (``unexpected-keyword-arg``) (#5547) | Daniël van Noord | 2021-12-18 | 5 | -0/+174 |
| | | | | | | | * Improve coverage * Remove unnecessary declaration * Change spacing | ||||
* | Fix ``used-before-assignment`` for conditional self-referential typing (#5532) | Daniël van Noord | 2021-12-18 | 4 | -1/+24 |
| | |||||
* | Remove unnecessary `if` statement in variable consumption checker (#5531) | Daniël van Noord | 2021-12-18 | 1 | -17/+13 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fixed extremely long processing of long lines with comma's (#5534) | Daniël van Noord | 2021-12-17 | 5 | -16/+51 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Add typing to ``_determine_callable`` (#5548) | Daniël van Noord | 2021-12-17 | 1 | -4/+20 |
| | |||||
* | Fix crash on uninferable decorators on Python 3.6 and 3.7 (#5549) | Daniël van Noord | 2021-12-17 | 5 | -1/+16 |
| | | | Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> | ||||
* | Add regression test for issue #5382 (#5550) | Daniël van Noord | 2021-12-17 | 1 | -0/+29 |
| | |||||
* | Fix ``not-callable`` for attributes that alias ``NamedTuple`` (#5537) | Daniël van Noord | 2021-12-17 | 5 | -20/+55 |
| | |||||
* | Fix typos over the whole codebase (#5540) | Kian Meng, Ang | 2021-12-17 | 30 | -55/+57 |
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | [refactor] Create a file for the ClassChecker in pylint.classes | Pierre Sassoulas | 2021-12-17 | 2 | -2048/+2053 |
| | |||||
* | [refactor] Create a file for the SpecialMethodsChecker in pylint.classes | Pierre Sassoulas | 2021-12-17 | 2 | -369/+387 |
| | |||||
* | Style following review: better docstring | Pierre Sassoulas | 2021-12-17 | 1 | -2/+1 |
| | |||||
* | [refactor] Create a package in order to be able to burst classes.py | Pierre Sassoulas | 2021-12-17 | 1 | -0/+0 |
| | |||||
* | Factor out `_uncertain_nodes_in_except_blocks()` (#5541) | Jacob Walls | 2021-12-17 | 1 | -34/+51 |
| | |||||
* | Add ``future=True`` to all ``NodeNG.statement()`` calls (#5310) | Daniël van Noord | 2021-12-16 | 7 | -32/+64 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Upgrade mypy to 0.920 (#5535) | Marc Mueller | 2021-12-16 | 5 | -5/+9 |
| | |||||
* | Fix assigning-non-slot false positive with setattr (#5457) | Jake Lishman | 2021-12-15 | 5 | -0/+47 |
| | | | | | | | | | | | | * Fix assigning-non-slot false positive with setattr Previously, if a class was slotted and overrode `__setattr__`, `assigning-non-slot` would be issued when assigning to attributes. With `__setattr__` defined, we cannot infer if it is an error to assign to an attribute, so we suppress the error. Fix #3793 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Add additional test cases used-before-assignment with try-except (#5523) | Marc Mueller | 2021-12-15 | 2 | -1/+37 |
| | |||||
* | Update typing of reporter attributes in ``PyLinter`` (#5525) | Daniël van Noord | 2021-12-15 | 2 | -14/+18 |
| | |||||
* | Enable missing-raises-doc to understand class hierarchies (#5278) | kasium | 2021-12-15 | 8 | -18/+111 |
| | | | | | | | | | | | | | Before, missing-raises-doc could not understand class hierarchies but just compared names. So, when a method documented a raise of a parent class, but a child exception was raised, the check failed. With this change, if the name compare doesn't help, the exception class hierarchy is checked. For that, possible_exc_types was changed to return classes instead of names Resolved #4955 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Produce a score of 0 for fatal errors and add fatal to score evaluation (#5521) | Jacob Walls | 2021-12-14 | 7 | -10/+33 |
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | typecheck: simplify variadic positional detection (#5417) | Jérome Perrin | 2021-12-14 | 4 | -14/+33 |
| | | | | | | | | The isinstance checks were not necessary here and caused several false positives where a function with variadic positional argument was called, like for example when the call is used as a function argument, in a if, while or with statement. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix #3675: `safe_infer()` finds ambiguity among function definitions when ↵ | Jacob Walls | 2021-12-14 | 5 | -2/+32 |
| | | | | | number of arguments differ (#5409) Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Modify the description of HIGH confidence for accuracy | Pierre Sassoulas | 2021-12-14 | 1 | -1/+1 |
| | |||||
* | Fix the typing of pylint.interfaces.implements | Pierre Sassoulas | 2021-12-14 | 1 | -2/+6 |
| | |||||
* | Fix typo in pylint/interfaces.py | Pierre Sassoulas | 2021-12-14 | 1 | -3/+3 |
| | |||||
* | Add Confidences in pylint.interfaces API | Pierre Sassoulas | 2021-12-14 | 1 | -3/+13 |
| | |||||
* | Check `node` location attributes in unittests and update tests (#5383) | Daniël van Noord | 2021-12-13 | 10 | -15/+239 |
| | | | | | | | | | | | | | | | | | | | | | | * Allow checking of `end_col_offset` and `end_lineno` in unittests * Allow checking of `col_offset` in unittests * Allow checking of `lineno` in unittests * Update tests for ``TestVariablesChecker`` * Fix ``TestMultiNamingStyle`` * Update tests for ``TestImportsChecker`` * Add location attributes to messages of ``TestTypeChecker`` * Add location params to ``TestMessage``'s of ``TestDeprecatedChecker`` * Add location params to ``TestMessage``'s of ``TestTypeCheckerOnDecorators`` * Add changelog and ``DeprecationWarning`` | ||||
* | New checker - Detect use of unnecessary ellipsis (#5470) | Mark Byrne | 2021-12-13 | 8 | -3/+161 |
| | | | | Closes #5460 | ||||
* | Fix false-positive 'used-before-assignment' for assignments in except blocks ↵ | Jacob Walls | 2021-12-13 | 5 | -7/+55 |
| | | | | following try blocks that return (#5506) | ||||
* | Move tests from ``TestConfusingConsecutiveElifChecker`` to functional tests ↵ | Daniël van Noord | 2021-12-13 | 3 | -205/+111 |
| | | | | | | | (#5517) * Remove some redundant test Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Move tests from ``TestComparison`` to functional tests (#5520) | Daniël van Noord | 2021-12-13 | 5 | -134/+31 |
| | | | | * Remove some redundant tests | ||||
* | Remove redundant tests in ``TestWhileUsed`` (#5518) | Daniël van Noord | 2021-12-13 | 1 | -25/+0 |
| | |||||
* | Update pytest-xdist requirement from ~=2.4 to ~=2.5 | dependabot[bot] | 2021-12-13 | 1 | -1/+1 |
| | | | | | | | | | | | | | | Updates the requirements on [pytest-xdist](https://github.com/pytest-dev/pytest-xdist) to permit the latest version. - [Release notes](https://github.com/pytest-dev/pytest-xdist/releases) - [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v2.4.0...v2.5.0) --- updated-dependencies: - dependency-name: pytest-xdist dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> | ||||
* | Bump actions/download-artifact from 2.0.10 to 2.1.0 | dependabot[bot] | 2021-12-13 | 1 | -1/+1 |
| | | | | | | | | | | | | | | Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2.0.10 to 2.1.0. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v2.0.10...v2.1.0) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> | ||||
* | Bump actions/upload-artifact from 2.2.4 to 2.3.0 | dependabot[bot] | 2021-12-13 | 1 | -2/+2 |
| | | | | | | | | | | | | | | Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2.2.4 to 2.3.0. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2.2.4...v2.3.0) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> | ||||
* | Unify validation of functional test option files (#5510) | Daniël van Noord | 2021-12-13 | 2 | -10/+9 |
| | |||||
* | Style - Remove unrelated error in tests for unnecessary-dict-index-lookup | Pierre Sassoulas | 2021-12-13 | 2 | -43/+48 |
| | | | | So it's easier to focus on the real error we're testing. | ||||
* | Add a DeprecationWarning to set_config_directly (#5511) | Daniël van Noord | 2021-12-13 | 2 | -0/+24 |
| | |||||
* | Move tests from ``TestParamDocChecker`` to functional tests (#5509) | Daniël van Noord | 2021-12-13 | 20 | -305/+212 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Emit `used-before-assignment` in final or except blocks where try ↵ | Jacob Walls | 2021-12-13 | 7 | -7/+77 |
| | | | | | | | statements could have failed (#5384) * Emit `used-before-assignment` in final or except blocks where try statements could have failed Fix #85, #2615 |