Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add import-based submodule detection for preferred-modules (#8186) | Dave Bunten | 2023-02-08 | 2 | -1/+58 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix `used-before-assignment` false positive for TYPE_CHECKING if/elif/else ↵ | Zen Lee | 2023-02-07 | 4 | -17/+121 |
| | | | | usage (#8071) | ||||
* | Fix no-name-in-module when variable is same as module name (#8169) | Dani Alcala | 2023-02-07 | 5 | -0/+18 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix crash when an attribute node was used inside an unary op (#8209) | Pierre Sassoulas | 2023-02-07 | 1 | -0/+14 |
| | | | | | Closes #8207 | ||||
* | [doc] Use the real URL address of pylint's read the doc project | Pierre Sassoulas | 2023-02-06 | 1 | -6/+6 |
| | |||||
* | [ruff] Prevent automatic refactor of a lambda assignment | Pierre Sassoulas | 2023-02-06 | 1 | -2/+2 |
| | |||||
* | [ruff] Autofix 'not x in iterator' => 'x not in iterator' | Pierre Sassoulas | 2023-02-06 | 1 | -3/+3 |
| | |||||
* | [ruff] Fix E741 Ambiguous variable name: 'l' | Pierre Sassoulas | 2023-02-06 | 1 | -1/+1 |
| | |||||
* | Add poetry-core as a repository to prime (#8193) | Alexey Pelykh | 2023-02-06 | 1 | -0/+5 |
| | |||||
* | Fix a false negative for 'missing-parentheses-for-call-in-test' | Pierre Sassoulas | 2023-02-05 | 2 | -19/+56 |
| | | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Add some test cases for redundant type check (#8136) | Nick Drozd | 2023-02-03 | 5 | -1/+78 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | improving test_pragma_parser (#8159) | Andre Hora | 2023-02-02 | 1 | -0/+8 |
| | |||||
* | Update docs for `global-variable-not-assigned` (#8151) | Dani Alcala | 2023-02-01 | 4 | -15/+29 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix issues with new typing Union syntax (Py310) (#8122) | Marc Mueller | 2023-02-01 | 9 | -1/+55 |
| | | | | * Fix issues with new typing Union syntax (Py310) * Upgrade astroid to 2.14.1 | ||||
* | Fix false positive for `use-maxsplit-arg` with custom split (#8114) | yushao2 | 2023-01-30 | 1 | -0/+8 |
| | | | | | | Closes #4857 Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Tighten design constraints (#8115) | Nick Drozd | 2023-01-28 | 4 | -0/+4 |
| | | | | | | | | | | | | | * Lower max locals * Lower max statements * Lower max try statements * Lower max branches * Lower max args * Cut design constraints with default values | ||||
* | Add `--allow-reexport-from-package` option (#8124) | Marc Mueller | 2023-01-28 | 4 | -7/+53 |
| | |||||
* | feat(6489): implement `positional-only-arguments-expected` checker (#8121) | yushao2 | 2023-01-28 | 3 | -0/+24 |
| | | | | | | | * feat(6489): implement positional-only-arguments-expected checker * Update doc/user_guide/configuration/all-options.rst * update good/bad examples | ||||
* | Fix a false positive for ``redefined-variable-type`` when ``async`` methods ↵ | Mark Byrne | 2023-01-28 | 1 | -0/+25 |
| | | | | | are present. (#8123) Closes #8120 | ||||
* | Add `consider-refactoring-into-while-condition` checker (#8021) | yushao2 | 2023-01-27 | 6 | -0/+382 |
| | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> | ||||
* | Add tests to improve coverage (#8096) | Dani Alcala | 2023-01-26 | 2 | -2/+32 |
|\ | |||||
| * | add test for get msg def | clavedeluna | 2023-01-25 | 1 | -0/+10 |
| | | |||||
| * | add test for Uninferable | clavedeluna | 2023-01-24 | 2 | -2/+22 |
| | | |||||
* | | Update disallowed-name to flag module-level variables (#7808) | Dani Alcala | 2023-01-25 | 15 | -23/+34 |
| | | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | | Fix `missing-kwoa` FP with With statements (#8101) | Dani Alcala | 2023-01-24 | 3 | -5/+25 |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <!-- Thank you for submitting a PR to pylint! To ease the process of reviewing your PR, do make sure to complete the following boxes. - [ ] Write a good description on what the PR does. - [ ] Create a news fragment with `towncrier create <IssueNumber>.<type>` which will be included in the changelog. `<type>` can be one of: breaking, user_action, feature, new_check, removed_check, extension, false_positive, false_negative, bugfix, other, internal. If necessary you can write details or offer examples on how the new change is supposed to work. - [ ] If you used multiple emails or multiple names when contributing, add your mails and preferred name in ``script/.contributors_aliases.json`` --> ## Type of Changes <!-- Leave the corresponding lines for the applicable type of change: --> | | Type | | --- | ---------------------- | | ✓ | :bug: Bug fix | ## Description Fix ``no-kwoa`` false positive for context managers. Closes #8100 | ||||
| * | update tests | clavedeluna | 2023-01-23 | 1 | -2/+2 |
| | | |||||
| * | add inference | clavedeluna | 2023-01-23 | 1 | -3/+3 |
| | | |||||
| * | fix no-kwoa for any with calls | clavedeluna | 2023-01-23 | 2 | -0/+3 |
| | | |||||
| * | fix no-kwoa for one with call | clavedeluna | 2023-01-23 | 1 | -1/+18 |
| | | |||||
* | | Add test for existing preferred-modules functionality (#8093) | Dave Bunten | 2023-01-24 | 2 | -0/+26 |
| | | | | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | | [subprocess-run-check] Add the proper confidence | Pierre Sassoulas | 2023-01-23 | 1 | -1/+1 |
| | | |||||
* | | [subprocess-run-check] Better rationale and message | Pierre Sassoulas | 2023-01-23 | 1 | -1/+1 |
|/ | |||||
* | Fix FP for `used-before-assignment` when reimporting name used in type ↵ | Jacob Walls | 2023-01-23 | 2 | -1/+4 |
| | | | | | | annotation (#8095) Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> | ||||
* | Fix `consider-using-augmented-assign` nested attribute access (#8088) | Marc Mueller | 2023-01-20 | 2 | -1/+16 |
| | |||||
* | Fix invalid-name for typing_extensions.TypeVar (#8089) | Marc Mueller | 2023-01-20 | 4 | -2/+20 |
| | |||||
* | pointless-exception-statement: filter call inference for better performance ↵ | James Addison | 2023-01-20 | 2 | -4/+14 |
| | | | | | | | | | on large codebases (#8078) Filtering to to names that begin with an uppercase character seems to be sufficient, See the full conversation on Github for details. Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> | ||||
* | Fixed a crash when inferring a value and using its qname on a slice (#8070) | Pierre Sassoulas | 2023-01-18 | 2 | -0/+18 |
| | | | | Closes #8067 | ||||
* | [style] Limit line length and complexity using flake8 (#8064) | Pierre Sassoulas | 2023-01-16 | 3 | -41/+30 |
| | | | 125 is a good start. The check was activated in pylint with value = 100, but flake8 is less lenient than pylint and does not make any exceptions (for docstrings, strings and comments in particular). | ||||
* | Add a regression tests for issue #2567 | Pierre Sassoulas | 2023-01-13 | 1 | -0/+33 |
| | |||||
* | Fixes false positive for `try-except-raise` with multiple exceptions in one ↵ | fly | 2023-01-12 | 2 | -2/+14 |
| | | | | | except statement if exception are in different namespace (#8052) Closes #8051 | ||||
* | Bugfix - extend ``magic-value-comparison`` support for parsing numerical ↵ | orSolocate | 2023-01-12 | 2 | -2/+7 |
| | | | | types and `\\` in rcfile configuration (#7880) | ||||
* | [consider-using-augmented-assign] Do not warn for non-commutative operators ↵ | Pierre Sassoulas | 2023-01-09 | 2 | -26/+76 |
| | | | | | | | | | | | (#8037) Or rather, only warn for known commutative operators. Closes #7639 Co-authored-by: Nick Drozd <nicholasdrozd@gmail.com> Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> | ||||
* | Fix `used-before-assignment` false positive for walrus operators in ifs (#8029) | Zen Lee | 2023-01-08 | 3 | -0/+46 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Prevent `pyreverse` crash when processing attributes assigned via tuple ↵ | Andreas Finkler | 2023-01-08 | 2 | -0/+9 |
| | | | | unpacking (#8032) | ||||
* | Add new check "pointless-exception-statement" (#7939) | James Addison | 2023-01-07 | 4 | -1/+22 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | class attrs should not emit assigning-non-slot msg (#7987) | Dani Alcala | 2022-12-30 | 3 | -8/+47 |
| | |||||
* | Add `no-header` run option (#7869) | Dani Alcala | 2022-12-30 | 1 | -0/+12 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Cover more lines (#7996) | Nick Drozd | 2022-12-28 | 8 | -13/+37 |
| | |||||
* | [consider-using-sys-exit] Better rationale and added confidence | Pierre Sassoulas | 2022-12-28 | 1 | -3/+3 |
| | |||||
* | Cover missing line in dict-init-mutate test (#7994) | Nick Drozd | 2022-12-27 | 1 | -0/+3 |
| |