summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add import-based submodule detection for preferred-modules (#8186)Dave Bunten2023-02-082-1/+58
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix `used-before-assignment` false positive for TYPE_CHECKING if/elif/else ↵Zen Lee2023-02-074-17/+121
| | | | usage (#8071)
* Fix no-name-in-module when variable is same as module name (#8169)Dani Alcala2023-02-075-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 Sassoulas2023-02-071-0/+14
| | | | | Closes #8207
* [doc] Use the real URL address of pylint's read the doc projectPierre Sassoulas2023-02-061-6/+6
|
* [ruff] Prevent automatic refactor of a lambda assignmentPierre Sassoulas2023-02-061-2/+2
|
* [ruff] Autofix 'not x in iterator' => 'x not in iterator'Pierre Sassoulas2023-02-061-3/+3
|
* [ruff] Fix E741 Ambiguous variable name: 'l'Pierre Sassoulas2023-02-061-1/+1
|
* Add poetry-core as a repository to prime (#8193)Alexey Pelykh2023-02-061-0/+5
|
* Fix a false negative for 'missing-parentheses-for-call-in-test'Pierre Sassoulas2023-02-052-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 Drozd2023-02-035-1/+78
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* improving test_pragma_parser (#8159)Andre Hora2023-02-021-0/+8
|
* Update docs for `global-variable-not-assigned` (#8151)Dani Alcala2023-02-014-15/+29
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix issues with new typing Union syntax (Py310) (#8122)Marc Mueller2023-02-019-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)yushao22023-01-301-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 Drozd2023-01-284-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 Mueller2023-01-284-7/+53
|
* feat(6489): implement `positional-only-arguments-expected` checker (#8121)yushao22023-01-283-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 Byrne2023-01-281-0/+25
| | | | | are present. (#8123) Closes #8120
* Add `consider-refactoring-into-while-condition` checker (#8021)yushao22023-01-276-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 Alcala2023-01-262-2/+32
|\
| * add test for get msg defclavedeluna2023-01-251-0/+10
| |
| * add test for Uninferableclavedeluna2023-01-242-2/+22
| |
* | Update disallowed-name to flag module-level variables (#7808)Dani Alcala2023-01-2515-23/+34
| | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Fix `missing-kwoa` FP with With statements (#8101)Dani Alcala2023-01-243-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 testsclavedeluna2023-01-231-2/+2
| |
| * add inferenceclavedeluna2023-01-231-3/+3
| |
| * fix no-kwoa for any with callsclavedeluna2023-01-232-0/+3
| |
| * fix no-kwoa for one with callclavedeluna2023-01-231-1/+18
| |
* | Add test for existing preferred-modules functionality (#8093)Dave Bunten2023-01-242-0/+26
| | | | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* | [subprocess-run-check] Add the proper confidencePierre Sassoulas2023-01-231-1/+1
| |
* | [subprocess-run-check] Better rationale and messagePierre Sassoulas2023-01-231-1/+1
|/
* Fix FP for `used-before-assignment` when reimporting name used in type ↵Jacob Walls2023-01-232-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 Mueller2023-01-202-1/+16
|
* Fix invalid-name for typing_extensions.TypeVar (#8089)Marc Mueller2023-01-204-2/+20
|
* pointless-exception-statement: filter call inference for better performance ↵James Addison2023-01-202-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 Sassoulas2023-01-182-0/+18
| | | | Closes #8067
* [style] Limit line length and complexity using flake8 (#8064)Pierre Sassoulas2023-01-163-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 #2567Pierre Sassoulas2023-01-131-0/+33
|
* Fixes false positive for `try-except-raise` with multiple exceptions in one ↵fly2023-01-122-2/+14
| | | | | except statement if exception are in different namespace (#8052) Closes #8051
* Bugfix - extend ``magic-value-comparison`` support for parsing numerical ↵orSolocate2023-01-122-2/+7
| | | | types and `\\` in rcfile configuration (#7880)
* [consider-using-augmented-assign] Do not warn for non-commutative operators ↵Pierre Sassoulas2023-01-092-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 Lee2023-01-083-0/+46
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Prevent `pyreverse` crash when processing attributes assigned via tuple ↵Andreas Finkler2023-01-082-0/+9
| | | | unpacking (#8032)
* Add new check "pointless-exception-statement" (#7939)James Addison2023-01-074-1/+22
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* class attrs should not emit assigning-non-slot msg (#7987)Dani Alcala2022-12-303-8/+47
|
* Add `no-header` run option (#7869)Dani Alcala2022-12-301-0/+12
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Cover more lines (#7996)Nick Drozd2022-12-288-13/+37
|
* [consider-using-sys-exit] Better rationale and added confidencePierre Sassoulas2022-12-281-3/+3
|
* Cover missing line in dict-init-mutate test (#7994)Nick Drozd2022-12-271-0/+3
|