summaryrefslogtreecommitdiff
path: root/pylint/extensions
Commit message (Collapse)AuthorAgeFilesLines
* Add optional `prefer-typing-namedtuple` message (#8681)HEADmainJacob Walls2023-05-161-0/+21
| | | Closes #8660
* Merge the empty-string extensions to 'implicit_booleaness_checker'Pierre Sassoulas2023-05-021-78/+0
|
* Merge the compare-to-zero extensions to 'implicit_booleaness_checker'Pierre Sassoulas2023-05-021-95/+0
|
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-2929-59/+59
|
* Deprecate redundant type checking guard utils (#8433)Jacob Walls2023-03-121-2/+2
|
* Use UninferableBase instead of UninferableDaniel van Noord2023-03-072-5/+5
|
* Changing flake8 to have max-line-length of 115 (#8362)Ollie2023-03-022-2/+4
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fixing some too long lines (#8339)Ollie2023-02-252-4/+8
| | | | | * Changing flake8 max-line-length to 120 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix a false positive for ``redefined-variable-type`` when ``async`` methods ↵Mark Byrne2023-01-281-2/+2
| | | | | are present. (#8123) Closes #8120
* Add `consider-refactoring-into-while-condition` checker (#8021)yushao22023-01-271-0/+93
| | | | | 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>
* Bugfix - extend ``magic-value-comparison`` support for parsing numerical ↵orSolocate2023-01-121-3/+34
| | | | types and `\\` in rcfile configuration (#7880)
* [style] Use default 'dummy-variable-rgx' and 'ignored-argument-names' (#8014)Pierre Sassoulas2023-01-021-4/+1
| | | | Refs #8013 Refs https://github.com/PyCQA/pylint/pull/7697#discussion_r1010869312
* Cover more lines (#7996)Nick Drozd2022-12-281-6/+2
|
* [pre-commit] Upgrade to black 23.1a1 with 2023's formatting (#7965)Pierre Sassoulas2022-12-2711-13/+2
|
* update while-used doc (#7974)Dani Alcala2022-12-241-1/+2
|
* Fix ``missing-param-doc`` for escaped underscores (#7878)Dani Alcala2022-12-041-1/+1
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add ``redundant-union-assign-typehint`` checker for duplicated assign ↵orSolocate2022-11-301-1/+79
| | | | | | typehints (#7745) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Enable dict-init-mutate extension (#7844)Nick Drozd2022-11-251-2/+2
|
* Add a new check `dict-init-mutate` (#7794)Dani Alcala2022-11-231-0/+66
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix false negatives for-any-all (#7707)Dani Alcala2022-11-171-7/+93
|
* [compare-to-empty-string] More actionnable and understandable message (#7726)Pierre Sassoulas2022-11-091-20/+26
| | | | 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-071-1/+5
|
* [compare-to-zero] More actionnable and understandable messagePierre Sassoulas2022-11-071-2/+15
| | | | | | 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-2/+4
| | | First step prior doing #6870 in order to make it more reviewable.
* Add `bad-dunder-name` extension checker (#7642)Dani Alcala2022-10-311-0/+77
| | | | | 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-281-7/+5
| | | | | | | | | 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 default_enabled option to optional message dict (#7629)Marc Mueller2022-10-251-2/+3
|
* Add `magic-number` checker for comparison with literals (#7526)orSolocate2022-10-221-0/+88
| | | Co-authored-by: Or Bahari <or.bahari@samsung.com>
* Move `consider-using-augmented-assign` to `CodeStyle` extension (#7628)Marc Mueller2022-10-161-0/+23
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix `undefined-loop-variable` with `NoReturn` and `Never` (#7476)Daniël van Noord2022-09-191-6/+1
| | | | Co-authored-by: detachhead <detachhead@users.noreply.github.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Turn on ``mypy`` strict mode 🎉 (#7448)Daniël van Noord2022-09-094-7/+5
| | | | | | | | | | * 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 codebaseDaniël van Noord2022-09-091-8/+7
|
* Make ``missing-yield/raises-doc`` respect ``no-docstring-rgx`` optionDaniël van Noord2022-09-061-0/+10
|
* Fix and refactors for ``docparams`` extension (#7398)Daniël van Noord2022-09-041-13/+27
| | | | | | | | | | | * 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-041-0/+5
|
* [doc param checker] Add confidences for DocParam checker's messagePierre Sassoulas2022-07-211-6/+15
|
* [refactor] Simplify '_add_raise_message' in the DocParam checkerPierre Sassoulas2022-07-211-11/+9
|
* Allow lists of default values in parameter documentation for ``Numpy`` (#7149)Daniël van Noord2022-07-081-3/+14
|
* [empty-comment] fix checker name in code and docs (#6996)Ville Skyttä2022-07-051-1/+1
|
* Don't report `import-private-name` for relative imports (#7079)Ville Skyttä2022-06-281-0/+2
| | | Closes #7078
* Fix differing param doc false positive (#6980)Marco Pernigotti2022-06-231-0/+4
| | | | | * Read `posonly` args and annotations on `check_arguments_in_docstring` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix typo in runtime-typingJacob Walls2022-06-231-1/+1
|
* Clean up and add typing to the ``mccabe`` extensionDaniël van Noord2022-06-191-15/+49
|
* [refactor] Normalize the typing of visitor functions (#6892)Pierre Sassoulas2022-06-122-6/+7
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add typing to extensions (#6893)Daniël van Noord2022-06-095-25/+31
|
* Add typing to several checkersDaniël van Noord2022-06-065-16/+17
|
* Fix a crash in the optional `private_import` extensionJacob Walls2022-06-041-1/+2
|
* Fix a crash in the ``docparams`` extension when raising the result of a ↵Jacob Walls2022-05-311-0/+2
| | | | function (#6767)
* Add typing to ``_check_docs_utils``Daniël van Noord2022-05-241-45/+45
|
* Enable line-wrapping from ``pydocstringformatter``Daniël van Noord2022-05-232-6/+9
|