Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [use-implicit-booleaness] Micro-optimization if some messages are disabled | Pierre Sassoulas | 2023-05-03 | 1 | -4/+9 |
| | |||||
* | [use-implicit-booleaness] Remove condition that is always false (outdated ↵ | Pierre Sassoulas | 2023-05-03 | 1 | -2/+0 |
| | | | | typing hint?) | ||||
* | [use-implicit-booleaness] Optimization for unknown operators | Pierre Sassoulas | 2023-05-03 | 1 | -5/+7 |
| | |||||
* | [use-implicit-booleaness] Merge the check for string and zero together | Pierre Sassoulas | 2023-05-03 | 1 | -64/+52 |
| | |||||
* | Uniformize message and remove useless details.rst | Pierre Sassoulas | 2023-05-03 | 1 | -17/+19 |
| | |||||
* | Add applicability notes for `compare-to-empty-string/zero` (#8592) | Jason Lau | 2023-05-03 | 1 | -3/+3 |
| | | | | | | The extension `compare-to-empty-string` is only applicable when the expression being compared is strictly a `str`. The extension `compare-to-zero` is only applicable when the expression being compared is strictly an `int`. | ||||
* | Switch from ' to " in use-implicit-booleaness-not-comparison | Pierre Sassoulas | 2023-05-03 | 1 | -1/+1 |
| | | | | | Because empty string needs to " because node.as_string() use simple quote. | ||||
* | Merge the empty-string extensions to 'implicit_booleaness_checker' | Pierre Sassoulas | 2023-05-02 | 1 | -2/+56 |
| | |||||
* | Merge the compare-to-zero extensions to 'implicit_booleaness_checker' | Pierre Sassoulas | 2023-05-02 | 1 | -0/+59 |
| | |||||
* | 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 | ||||
* | Modified all occurences of "a f-string" to "an f-string" | Elazrod56 | 2023-04-20 | 1 | -2/+2 |
| | |||||
* | 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 | 5 | -13/+13 |
| | |||||
* | 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 | 2 | -6/+14 |
| | |||||
* | 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 | ||||
* | Fix false positive for `use-maxsplit-arg` with custom split (#8114) | yushao2 | 2023-01-30 | 1 | -0/+5 |
| | | | | | | 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 | 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 | 2 | -3/+0 |
| | |||||
* | Fix `use-sequence-for-iteration` when unpacking a set with `*` (#7975) | Dani Alcala | 2022-12-26 | 1 | -4/+11 |
| | |||||
* | ``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> | ||||
* | Do not report `consider_iterating_dictionary` if bitwise operations are used ↵ | Dani Alcala | 2022-11-10 | 1 | -1/+8 |
| | | | | | | | (#7743) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | [use-implicit-booleaness-not-comparison] Better message with the type of ↵ | Pierre Sassoulas | 2022-11-09 | 1 | -9/+17 |
| | | | | sequence | ||||
* | Add R1737 use-dict-literal-without-kwargs | Robert Hofer | 2022-11-09 | 1 | -8/+40 |
| | |||||
* | [implicit_booleaness_checker] Add the confidence to related messages (#7721) | Pierre Sassoulas | 2022-11-06 | 1 | -26/+35 |
| | | | First step prior doing #6870 in order to make it more reviewable. | ||||
* | 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 | ||||
* | Move `consider-using-augmented-assign` to `CodeStyle` extension (#7628) | Marc Mueller | 2022-10-16 | 1 | -20/+0 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | 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`. | ||||
* | Add ``consider-using-augmented-assign`` checker (#7514) | Daniël van Noord | 2022-09-22 | 1 | -0/+20 |
| | | | | Co-authored-by: clavedeluna <danalitovsky+git@gmail.com> Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> | ||||
* | 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 | 2 | -5/+9 |
| | |||||
* | 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 missing whitespace to a message description (#7002) | Julthep Nandakwang | 2022-06-23 | 1 | -1/+1 |
| |