summaryrefslogtreecommitdiff
path: root/tests/functional/ext
Commit message (Collapse)AuthorAgeFilesLines
* Add optional `prefer-typing-namedtuple` message (#8681)HEADmainJacob Walls2023-05-163-0/+14
| | | Closes #8660
* Merge the empty-string extensions to 'implicit_booleaness_checker'Pierre Sassoulas2023-05-023-30/+0
|
* Merge the compare-to-zero extensions to 'implicit_booleaness_checker'Pierre Sassoulas2023-05-023-54/+0
|
* Fix a false positive for ``bad-dunder-name`` when there is a user-defined ↵Mark Byrne2023-04-241-0/+3
| | | | | ``__index__`` method. (#8619) Closes #8613
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-2913-15/+15
|
* Add ``invalid-name`` check for ``TypeAlias`` names (#7116)Daniël van Noord2023-02-268-13/+25
|
* Add new checker `bad-chained-comparison` (#7990)Zen Lee2023-02-261-1/+1
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix test for ``plugin_does_not_exists``Daniel van Noord2023-02-202-1/+2
|
* Fix invalid type false positive (#8206)Nick Drozd2023-02-142-2/+2
|
* Add some test cases for redundant type check (#8136)Nick Drozd2023-02-035-1/+78
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* 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>
* Fix `consider-using-augmented-assign` nested attribute access (#8088)Marc Mueller2023-01-202-1/+16
|
* 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>
* Cover more lines (#7996)Nick Drozd2022-12-288-13/+37
|
* Cover missing line in dict-init-mutate test (#7994)Nick Drozd2022-12-271-0/+3
|
* Fix `use-sequence-for-iteration` when unpacking a set with `*` (#7975)Dani Alcala2022-12-262-3/+2
|
* [pypy3.8] Disable multiple-statements false positive on affected functional ↵Pierre Sassoulas2022-12-158-61/+86
| | | | tests
* Fix ``missing-param-doc`` for escaped underscores (#7878)Dani Alcala2022-12-041-0/+12
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add ``redundant-union-assign-typehint`` checker for duplicated assign ↵orSolocate2022-11-303-0/+38
| | | | | | typehints (#7745) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add a new check `dict-init-mutate` (#7794)Dani Alcala2022-11-233-0/+43
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Emit `used-before-assignment` for variables only defined under always false ↵Jacob Walls2022-11-221-1/+1
| | | | tests (#6677)
* Fix false negatives for-any-all (#7707)Dani Alcala2022-11-172-12/+106
|
* Update documentation for checkers (#7764)Marc Mueller2022-11-131-1/+1
|
* [compare-to-empty-string] More actionnable and understandable message (#7726)Pierre Sassoulas2022-11-092-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 Sassoulas2022-11-072-6/+18
|
* [compare-to-zero] More actionnable and understandable messagePierre Sassoulas2022-11-074-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 Sassoulas2022-11-062-8/+8
| | | First step prior doing #6870 in order to make it more reviewable.
* Add confidence levels to all exception checkers (#7716)Dani Alcala2022-11-051-1/+1
|
* Rename `broad-except` and new check `broad-exception-raised` (#7709)Dani Alcala2022-11-055-5/+5
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add `bad-dunder-name` extension checker (#7642)Dani Alcala2022-10-313-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 Chardin2022-10-283-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)orSolocate2022-10-223-0/+42
| | | Co-authored-by: Or Bahari <or.bahari@samsung.com>
* Move `consider-using-augmented-assign` to `CodeStyle` extension (#7628)Marc Mueller2022-10-165-0/+108
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Make ``missing-yield/raises-doc`` respect ``no-docstring-rgx`` optionDaniël van Noord2022-09-063-2/+17
|
* Fix and refactors for ``docparams`` extension (#7398)Daniël van Noord2022-09-043-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 Noord2022-09-044-22/+46
|
* Remove Python 2 code from the tests & refactor (#7320)Mark Byrne2022-08-186-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 Sassoulas2022-07-219-31/+31
|
* [doc param checker] Add confidences for DocParam checker's messagePierre Sassoulas2022-07-2127-196/+196
|
* Allow lists of default values in parameter documentation for ``Numpy`` (#7149)Daniël van Noord2022-07-081-0/+15
|
* Don't report `import-private-name` for relative imports (#7079)Ville Skyttä2022-06-281-1/+6
| | | Closes #7078
* Fix differing param doc false positive (#6980)Marco Pernigotti2022-06-235-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 Walls2022-06-121-1/+1
| | | | generator (#6916)
* Fix a crash in the optional `private_import` extensionJacob Walls2022-06-041-0/+13
|
* Update ranges for error messages (#6606)Marc Mueller2022-05-131-1/+1
| | | | * using-constant-test * missing-parentheses-for-call-in-test
* Use main instead of master as main checker name (#6569)Daniël van Noord2022-05-1079-79/+79
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Change confidence for no-self-use to INFERENCEMarc Mueller2022-05-061-3/+3
|
* Move no-self-use to optional extension (#6448)Marc Mueller2022-05-056-3/+175
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>