Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add optional `prefer-typing-namedtuple` message (#8681)HEADmain | Jacob Walls | 2023-05-16 | 3 | -0/+14 |
| | | | Closes #8660 | ||||
* | Merge the empty-string extensions to 'implicit_booleaness_checker' | Pierre Sassoulas | 2023-05-02 | 3 | -30/+0 |
| | |||||
* | Merge the compare-to-zero extensions to 'implicit_booleaness_checker' | Pierre Sassoulas | 2023-05-02 | 3 | -54/+0 |
| | |||||
* | Fix a false positive for ``bad-dunder-name`` when there is a user-defined ↵ | Mark Byrne | 2023-04-24 | 1 | -0/+3 |
| | | | | | ``__index__`` method. (#8619) Closes #8613 | ||||
* | [PyCQA migration] Upgrade links to the repositories in code and doc (#8514) | Pierre Sassoulas | 2023-03-29 | 13 | -15/+15 |
| | |||||
* | Add ``invalid-name`` check for ``TypeAlias`` names (#7116) | Daniël van Noord | 2023-02-26 | 8 | -13/+25 |
| | |||||
* | Add new checker `bad-chained-comparison` (#7990) | Zen Lee | 2023-02-26 | 1 | -1/+1 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Fix test for ``plugin_does_not_exists`` | Daniel van Noord | 2023-02-20 | 2 | -1/+2 |
| | |||||
* | Fix invalid type false positive (#8206) | Nick Drozd | 2023-02-14 | 2 | -2/+2 |
| | |||||
* | 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> | ||||
* | 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> | ||||
* | Fix `consider-using-augmented-assign` nested attribute access (#8088) | Marc Mueller | 2023-01-20 | 2 | -1/+16 |
| | |||||
* | 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> | ||||
* | Cover more lines (#7996) | Nick Drozd | 2022-12-28 | 8 | -13/+37 |
| | |||||
* | Cover missing line in dict-init-mutate test (#7994) | Nick Drozd | 2022-12-27 | 1 | -0/+3 |
| | |||||
* | Fix `use-sequence-for-iteration` when unpacking a set with `*` (#7975) | Dani Alcala | 2022-12-26 | 2 | -3/+2 |
| | |||||
* | [pypy3.8] Disable multiple-statements false positive on affected functional ↵ | Pierre Sassoulas | 2022-12-15 | 8 | -61/+86 |
| | | | | tests | ||||
* | Fix ``missing-param-doc`` for escaped underscores (#7878) | Dani Alcala | 2022-12-04 | 1 | -0/+12 |
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Add ``redundant-union-assign-typehint`` checker for duplicated assign ↵ | orSolocate | 2022-11-30 | 3 | -0/+38 |
| | | | | | | typehints (#7745) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Add a new check `dict-init-mutate` (#7794) | Dani Alcala | 2022-11-23 | 3 | -0/+43 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Emit `used-before-assignment` for variables only defined under always false ↵ | Jacob Walls | 2022-11-22 | 1 | -1/+1 |
| | | | | tests (#6677) | ||||
* | Fix false negatives for-any-all (#7707) | Dani Alcala | 2022-11-17 | 2 | -12/+106 |
| | |||||
* | Update documentation for checkers (#7764) | Marc Mueller | 2022-11-13 | 1 | -1/+1 |
| | |||||
* | [compare-to-empty-string] More actionnable and understandable message (#7726) | Pierre Sassoulas | 2022-11-09 | 2 | -4/+12 |
| | | | | We have to use " as string delimiter because node as string have ' as string delimiter. | ||||
* | [compare to zero] Fix false positive with 'x is False' | Pierre Sassoulas | 2022-11-07 | 2 | -6/+18 |
| | |||||
* | [compare-to-zero] More actionnable and understandable message | Pierre Sassoulas | 2022-11-07 | 4 | -4/+12 |
| | | | | | | Originally done in order to normalize the use-implicit-booleaness check. This make the message more understandable and permit to make #6870 more reviewable. | ||||
* | [implicit_booleaness_checker] Add the confidence to related messages (#7721) | Pierre Sassoulas | 2022-11-06 | 2 | -8/+8 |
| | | | First step prior doing #6870 in order to make it more reviewable. | ||||
* | Add confidence levels to all exception checkers (#7716) | Dani Alcala | 2022-11-05 | 1 | -1/+1 |
| | |||||
* | Rename `broad-except` and new check `broad-exception-raised` (#7709) | Dani Alcala | 2022-11-05 | 5 | -5/+5 |
| | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Add `bad-dunder-name` extension checker (#7642) | Dani Alcala | 2022-10-31 | 3 | -0/+63 |
| | | | | | With a 'good-dunder-name' option Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Take 'accept-no-raise-doc' option into account (#7581) | Brice Chardin | 2022-10-28 | 3 | -0/+21 |
| | | | | | | | | | Check the accept-no-raise-doc option when the docstring has matching sections (Fixes #7208) Defaut value for accept-no-raise-doc is True, but tests in `missing_doc_required_Sphinx.py` assume that this option is set to False. Co-authored-by: Brice Chardin <brice.chardin@ensma.fr> | ||||
* | Add `magic-number` checker for comparison with literals (#7526) | orSolocate | 2022-10-22 | 3 | -0/+42 |
| | | | Co-authored-by: Or Bahari <or.bahari@samsung.com> | ||||
* | Move `consider-using-augmented-assign` to `CodeStyle` extension (#7628) | Marc Mueller | 2022-10-16 | 5 | -0/+108 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Make ``missing-yield/raises-doc`` respect ``no-docstring-rgx`` option | Daniël van Noord | 2022-09-06 | 3 | -2/+17 |
| | |||||
* | Fix and refactors for ``docparams`` extension (#7398) | Daniël van Noord | 2022-09-04 | 3 | -9/+22 |
| | | | | | | | | | | | * Fix and refactors for ``docparams`` extension The ``re_only_desc`` regex did not match for white and characters after ``\n``, so some description-only lines weren't getting matched. In addition, lookaheads were added to ``re_param_line`` (i.e. make sure the type group is not followed by a new line (``\n``)). Lastly, named groups (ala Perl regular expressions) were added for slightly improved clarity. Co-authored-by: Hendry, Adam <adam.grant.hendry@gmail.com> | ||||
* | Make ``missing-return-doc`` respect the ``no-docstring-rgx`` option (#7410) | Daniël van Noord | 2022-09-04 | 4 | -22/+46 |
| | |||||
* | Remove Python 2 code from the tests & refactor (#7320) | Mark Byrne | 2022-08-18 | 6 | -19/+18 |
| | | | | | | | - Refactor Classes which inherit from `object`. - Remove `import print_function from __future__`. - Remove assignments to `__revision__` from the functional test module when it is never used throughout the module. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | [basic checker] Add the confidence for 'unreachable' (#7216) | Pierre Sassoulas | 2022-07-21 | 9 | -31/+31 |
| | |||||
* | [doc param checker] Add confidences for DocParam checker's message | Pierre Sassoulas | 2022-07-21 | 27 | -196/+196 |
| | |||||
* | Allow lists of default values in parameter documentation for ``Numpy`` (#7149) | Daniël van Noord | 2022-07-08 | 1 | -0/+15 |
| | |||||
* | Don't report `import-private-name` for relative imports (#7079) | Ville Skyttä | 2022-06-28 | 1 | -1/+6 |
| | | | Closes #7078 | ||||
* | Fix differing param doc false positive (#6980) | Marco Pernigotti | 2022-06-23 | 5 | -0/+104 |
| | | | | | * Read `posonly` args and annotations on `check_arguments_in_docstring` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Emit `using-constant-test` when testing truth value of a variable holding a ↵ | Jacob Walls | 2022-06-12 | 1 | -1/+1 |
| | | | | generator (#6916) | ||||
* | Fix a crash in the optional `private_import` extension | Jacob Walls | 2022-06-04 | 1 | -0/+13 |
| | |||||
* | Update ranges for error messages (#6606) | Marc Mueller | 2022-05-13 | 1 | -1/+1 |
| | | | | * using-constant-test * missing-parentheses-for-call-in-test | ||||
* | Use main instead of master as main checker name (#6569) | Daniël van Noord | 2022-05-10 | 79 | -79/+79 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Change confidence for no-self-use to INFERENCE | Marc Mueller | 2022-05-06 | 1 | -3/+3 |
| | |||||
* | Move no-self-use to optional extension (#6448) | Marc Mueller | 2022-05-05 | 6 | -3/+175 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> |