Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bump astroid to 3.0.0a1 (#8626) | Marc Mueller | 2023-04-25 | 1 | -1/+7 |
| | |||||
* | Cope with changes to `Starred` constructor | Jacob Walls | 2023-04-16 | 1 | -1/+9 |
| | |||||
* | [PyCQA migration] Upgrade links to the repositories in code and doc (#8514) | Pierre Sassoulas | 2023-03-29 | 1 | -2/+2 |
| | |||||
* | Fix `nested-min-max` output msg for sequences (#8234) | Dani Alcala | 2023-02-08 | 1 | -1/+22 |
| | |||||
* | Add extension checker for nested min/max (#7550) | Osher De Paz | 2022-11-21 | 1 | -0/+95 |
This adds a new checker (not active by default) which identifies usages similar to ``min(<arg1>, min(<arg2>, <arg3>))`` and suggests using a simplified form of ``min(<arg1>, <arg2>, <arg3>)``. Same goes for ``max`` usage. The logic is as follows: it detects calls to either ``min`` or ``max`` functions, and whenever one of their arguments is that same function, it emits the message. Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> |