Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Drop support for Python 3.7 (#8609) | Marc Mueller | 2023-04-24 | 1 | -6/+1 |
| | | | | | * Drop support for Python 3.7 * Update py-version + classifier * Update functional tests | ||||
* | Optimize `is_trailing_comma()` (#8606) | Jacob Walls | 2023-04-23 | 1 | -4/+5 |
| | | | Skip is_trailing_comma() call unless `trailing-comma-tuple` enabled | ||||
* | Improve output of `consider-using-generator` message for `min()` calls with ↵ | Jacob Walls | 2023-04-16 | 1 | -1/+5 |
| | | | | `default` keyword (#8582) | ||||
* | [PyCQA migration] Upgrade links to the repositories in code and doc (#8514) | Pierre Sassoulas | 2023-03-29 | 1 | -5/+5 |
| | |||||
* | Bump pylint to 2.17.0, update changelog (#8395) | Pierre Sassoulas | 2023-03-07 | 1 | -1/+1 |
| | |||||
* | Use UninferableBase instead of Uninferable | Daniel van Noord | 2023-03-07 | 1 | -4/+10 |
| | |||||
* | Fixing some too long lines (#8339) | Ollie | 2023-02-25 | 1 | -10/+16 |
| | | | | | * Changing flake8 max-line-length to 120 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Only count obviously non-terminating while-loops as return-ended (#8292) | Nick Drozd | 2023-02-23 | 1 | -3/+6 |
| | |||||
* | Fix crash when an attribute node was used inside an unary op (#8209) | Pierre Sassoulas | 2023-02-07 | 1 | -2/+5 |
| | | | | | Closes #8207 | ||||
* | Tighten design constraints (#8115) | Nick Drozd | 2023-01-28 | 1 | -0/+1 |
| | | | | | | | | | | | | | * Lower max locals * Lower max statements * Lower max try statements * Lower max branches * Lower max args * Cut design constraints with default values | ||||
* | Fixed a crash when inferring a value and using its qname on a slice (#8070) | Pierre Sassoulas | 2023-01-18 | 1 | -2/+4 |
| | | | | Closes #8067 | ||||
* | [consider-using-sys-exit] Better rationale and added confidence | Pierre Sassoulas | 2022-12-28 | 1 | -3/+4 |
| | |||||
* | [pre-commit] Upgrade to black 23.1a1 with 2023's formatting (#7965) | Pierre Sassoulas | 2022-12-27 | 1 | -2/+0 |
| | |||||
* | ``consider-using-with`` now triggers for ``pathlib.Path.open`` (#7968) | Gideon | 2022-12-21 | 1 | -0/+1 |
| | |||||
* | Fix ``no-else-return false Negative for try/except/else pattern (#7888) | Dani Alcala | 2022-12-12 | 1 | -7/+36 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix crash when using ``enumerate`` with ``start`` and a class attribute (#7824) | Dani Alcala | 2022-11-24 | 1 | -9/+7 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Do not crash if next() is called without arguments (#7831) | Dani Alcala | 2022-11-24 | 1 | -0/+5 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fixes ``unnecessary-list-index-lookup`` false negative when ``enumerate`` is ↵ | Dani Alcala | 2022-11-17 | 1 | -3/+11 |
| | | | | called with ``iterable`` as a kwarg. (#7789) | ||||
* | Suppress `stop-iteration-return` on `itertools.cycle` (#7766) | Tushar Sadhwani | 2022-11-14 | 1 | -1/+1 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Extend `consider-using-join` to detect non-empty separators (#7481) | Levi Gruspe | 2022-11-13 | 1 | -3/+17 |
| | |||||
* | false positive `unnecessary-list-index-lookup` for enumerate (#7685) | Dani Alcala | 2022-11-13 | 1 | -3/+57 |
| | | | | | | | * 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> | ||||
* | Add R1737 use-dict-literal-without-kwargs | Robert Hofer | 2022-11-09 | 1 | -8/+40 |
| | |||||
* | Fix astroid error for custom ``next`` method (#7622) | Dani Alcala | 2022-11-03 | 1 | -3/+9 |
| | | | | | * short-circuit if next method doesnt have args * check for builtins.next qname * add inference confidence level | ||||
* | Fix a false positive for `simplify-boolean-expression` when multiple values ↵ | Jacob Walls | 2022-10-16 | 1 | -6/+5 |
| | | | | | inferred (#7627) Add a keyword-only `compare_constants` argument to `safe_infer`. | ||||
* | Turn on ``mypy`` strict mode 🎉 (#7448) | Daniël van Noord | 2022-09-09 | 1 | -6/+6 |
| | | | | | | | | | | * Ignore subclasses of Any * Add ignores for imported code and remove casts * Add disables for uninferable return values * Turn on ``mypy`` strict mode | ||||
* | Finish typing across the codebase | Daniël van Noord | 2022-09-09 | 1 | -4/+8 |
| | |||||
* | Skip ``unnecessary-list-index-lookup`` if we encounter if statements (#7334) | Daniël van Noord | 2022-08-22 | 1 | -0/+11 |
| | |||||
* | Partial typing of ``refactoring_checker`` (#7315) | Daniël van Noord | 2022-08-16 | 1 | -25/+33 |
| | |||||
* | Partial typing of ``refactoring_checker`` (#7312) | Daniël van Noord | 2022-08-16 | 1 | -21/+35 |
| | |||||
* | Partial typing of ``refactoring_checker`` | Daniël van Noord | 2022-08-11 | 1 | -22/+31 |
| | |||||
* | [consider-using-in] Add the proper confidence to the message | Pierre Sassoulas | 2022-07-04 | 1 | -0/+1 |
| | |||||
* | [consider-using-in] Suggest set instead of tuple for membership | Pierre Sassoulas | 2022-07-04 | 1 | -5/+8 |
| | |||||
* | Add whitespaces in some message descriptions (#7001) | Julthep Nandakwang | 2022-06-22 | 1 | -3/+3 |
| | |||||
* | [consider-using-in] Add 'sets' in the message description (#6966) | Julthep Nandakwang | 2022-06-17 | 1 | -3/+3 |
| | |||||
* | [refactor] Normalize the typing of visitor functions (#6892) | Pierre Sassoulas | 2022-06-12 | 1 | -1/+1 |
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> | ||||
* | Suppress ``unnecessary-list-index-lookup`` for whole loop on write (#6845) | Tim Martin | 2022-06-11 | 1 | -18/+92 |
| | | | | | | | | | | The ``unnecessary-list-index-lookup`` checker was assuming that if the subscript was written to then it would only invalidate access on later lines, but this is not necessarily the case if an inner loop is nested inside the one being checked. Fixes #6818 Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> | ||||
* | Prevent warnings on dict / list index lookup with destructuring assignment ↵ | Tim Martin | 2022-06-04 | 1 | -10/+24 |
| | | | | | | (#6808) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> | ||||
* | [simplifiable-if-expression] Add reference to implicit cast to bool in ↵ | Pierre Sassoulas | 2022-05-29 | 1 | -1/+2 |
| | | | | description | ||||
* | Enable line-wrapping from ``pydocstringformatter`` | Daniël van Noord | 2022-05-23 | 1 | -4/+4 |
| | |||||
* | Update ``pydocstringformatter`` to ``0.6.0`` (#6671) | Daniël van Noord | 2022-05-23 | 1 | -2/+0 |
| | |||||
* | Fix a crash in `unnecessary-list-index-lookup` when incorrectly using ↵ | Jacob Walls | 2022-05-13 | 1 | -0/+1 |
| | | | | `enumerate()` (#6604) | ||||
* | Change wording of use a generator message for sum/max/min (#6600) | Pierre Sassoulas | 2022-05-13 | 1 | -5/+6 |
| | | | | | Follow-up to #6595 Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Raise use_a_generator for `sum()`, `max()`, `min()` (#6595) | Matus Valo | 2022-05-13 | 1 | -5/+7 |
| | | | | | | | | | | | | | * Raise use_a_generator for `sum()`, `max()`, `min()` * Updated changelog * and -> or * Update ChangeLog Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Fix a crash in `unnecessary-dict-index-lookup` when subscripting an ↵ | Jacob Walls | 2022-05-11 | 1 | -0/+1 |
| | | | | attribute (#6579) | ||||
* | Fix typo in RefactoringChecker._check_simplifiable_condition() | Jacob Walls | 2022-04-29 | 1 | -1/+1 |
| | |||||
* | Remove some words from custom dictionary and update spelling | Daniël van Noord | 2022-04-26 | 1 | -1/+1 |
| | |||||
* | Migrate from utils.check_messages to utils.only_required_for_messages (#6432) | Pierre Sassoulas | 2022-04-22 | 1 | -16/+18 |
| | |||||
* | Remove references to to-be-deprecated interfaces | Daniël van Noord | 2022-04-20 | 1 | -3/+1 |
| | |||||
* | Subclass ``BaseRawFileChecker`` and ``BaseTokenChecker`` | Daniël van Noord | 2022-04-19 | 1 | -1/+1 |
| | |||||
* | Add typing to BaseChecker.process_token (#6273) | Pierre Sassoulas | 2022-04-19 | 1 | -1/+1 |
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> |