summaryrefslogtreecommitdiff
path: root/tests/extensions
Commit message (Collapse)AuthorAgeFilesLines
* Allow no type in Numpy param docstrings for ``mising-param-doc`` (#5231)Daniël van Noord2021-10-311-2/+8
| | | | | This closes #5222 See https://numpydoc.readthedocs.io/en/latest/format.html#parameters for reference
* Add extension checker that suggests any/all statements from for loops (#5196)Arianna Y2021-10-251-0/+247
| | | | | | | | | * Add extension checker that suggests any/all statements from for loops * Suggest all/not all: If there are negated conditions, we can suggest an all/not all statement to move the 'not' out of the comprehension and call it only once. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix asterisks parsing of ``mising-param-doc`` (#5175)Daniël van Noord2021-10-181-11/+11
| | | Closes #3733
* Improve documentation of ``docparams`` extension and fix tests (#5095)Daniël van Noord2021-10-141-1/+83
| | | This closes #4136
* Properly identify undocumented parameters and add new message called ↵Konstantina Saketou2021-10-101-2/+1
| | | | | | | | | | | | | | | | | | | missing-any-param-doc (#5097) * Correctly identify parameters with no doc and add new message This commit fixes the problem where non documented parameters where not being identified properly. Also, it adds a new message called ``missing-any-param-doc`` for when a function has no parameter and type doc at all. Adds new test cases for the ``missing-param-doc`` and ``missing-type-doc`` messages and tests for the new message ``missing-any-param-doc``. * Replace old messages with the new one where needed Fix pylint's code where the new message where needed in other files instead of triggering both missing-param-doc and missing-type-doc. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix empty regex options not converting to regexDaniël van Noord2021-09-291-1/+3
|
* Make test decorator use ``checker.set_option()``Daniël van Noord2021-09-291-2/+3
| | | | | | This makes unittests with options mimick the normal option setting behaviour. It also adds ``set_config_directly()`` for those cases where this is not possible.
* Rename ``pylint.testutils.TestMessage`` to ``MessageTest`` (#5051)Daniël van Noord2021-09-206-161/+161
|
* Rename `pylint.testutil.Message` to `pylint.testutil.TestMessage` (#5043)Daniël van Noord2021-09-186-161/+213
| | | * Rename `Message` to `TestMessage``
* Spelling and grammar fixesVille Skyttä2021-09-172-3/+3
|
* Add typing for ``json_reporter`` and sub-classesDaniël van Noord2021-09-162-4/+10
|
* Bump pylint to 2.11.0, update changelogv2.11.0Pierre Sassoulas2021-09-1614-0/+14
|
* Add typing to ``filepath`` (#4980)Daniël van Noord2021-09-162-2/+4
| | | | | | | | | | * Change tests for ``filepath`` changes * Add pylint/typing.py and FileItem NamedTuple * Use NamedTuple more efficiently * Fix errors and tests after adding warning * Add deprecation for future API change in Checker Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add typing with `PyAnnotate` to `./tests` (#4950)Daniël van Noord2021-09-0417-229/+244
| | | | | | * Add mypy_extensions to requirement for ``NoReturn`` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Refactor various typing related issues (#4940)Daniël van Noord2021-09-031-1/+1
| | | | | | | | | | | | | | | * Add type annotations to ``visit`` & ``leave`` calls This adds typing to most calls that visit nodes. All other changes are due to mypy errors resulting from introduction of typing. * Fix outstanding mypy issues This removes some of the `type: ignore` comments in favour of solving the mypy issues these comments were surpressing. * Fix remaining references to node_classes Except for two references to node_classes in the changelog this should be the last of them Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Use alias for astroid.nodes 04 (#4869)Marc Mueller2021-08-191-4/+3
| | | | | | | | | * Use alias for astroid nodes 04 * Resolve name conflicts * Apply suggestions from code review Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add extension check against use of while loops (#4860)Nick Drozd2021-08-181-0/+25
| | | | | * Move stray functional tests * Clean up some while loops * Add extension check against use of while loops
* Bump pylint to 2.9.4, update changelogv2.9.4Pierre Sassoulas2021-07-201-1/+1
|
* Bump pylint to 2.9.3, update changelogv2.9.3Pierre Sassoulas2021-07-0113-0/+13
|
* Fix copyright links (#4647)Marc Mueller2021-07-0115-15/+15
| | | | * Fix link in license header * Update link to astroid bump_changelog
* Make a smarter check to avoid 'useless-type-doc' false positivePierre Sassoulas2021-06-251-3/+3
|
* Bump pylint to 2.9.0-dev1, update changelogPierre Sassoulas2021-06-171-0/+1
|
* Add handle_message in BaseReporter and add typingPierre Sassoulas2021-06-152-6/+0
|
* Revert "Fix existing tests"Marc Mueller2021-06-101-1/+1
|
* Fix existing testsMarc Mueller2021-06-101-1/+1
|
* Fix existing codeMarc Mueller2021-06-101-3/+3
|
* Implemented new check consider-using-from-import (#4491)yushao22021-05-231-1/+1
|
* Prepare for 2.8.0 releasepylint-2.8.0Pierre Sassoulas2021-04-241-0/+1
|
* Rename copying to license and upgrade the setup.cfg (#4338)Pierre Sassoulas2021-04-1115-15/+15
|
* New ConfusingConsecutiveElifCheckr (for: #3920) (#4318)DudeNr332021-04-111-0/+195
|
* Update copyright notice with copyritePierre Sassoulas2021-02-2810-10/+10
|
* Apply copyrite --contribution-thresholdPierre Sassoulas2021-02-2113-4/+18
|
* Remove the # coding, since PEP3120 the default is UTF8Pierre Sassoulas2021-02-212-2/+0
|
* Move from format() to f-string where it makes sensePierre Sassoulas2021-02-161-24/+16
| | | | As we do not maintain python 3.5 it permit to simplify some code
* Enforce docparams consistently when docstring is not present (#3916)Logan Miller2021-01-091-1/+39
| | | | | | | | | | | | * fix #2738 * doc updates * add functional tests * fix formattting * fix formatting
* empty-comment line number bug fixOr Bahari2021-01-031-4/+4
|
* Merge pull request #3842 from ↵hippo912020-10-181-0/+140
|\ | | | | | | | | luigibertaco/enhancement-3800-ignore-argument-names-on-docstring-parmaeters Adds support to `ignored-argument-names` in DocstringParameterChecker
| * adds `useless-param-doc` and `useless-type-doc`Luigi2020-09-251-15/+30
| |
| * Adds support to `ignored-argument-names` in DocstringParameterCheckerLuigi2020-09-181-0/+125
| |
* | Add empty-comment checker extensionOr2020-10-072-0/+43
|/ | | | | | | | | | | | PR Review: refactor checker messages, test cases added: empty commit case, comments row case. unittest - pathlib replaces os.path. python3.5 fix for pathlib library use refactor `comment_ending` to `empty_comment` empty-comment test fixed (after Rebase)
* Update formatting following black and isort updatePierre Sassoulas2020-09-101-2/+1
|
* Sets up copyrighthippo912020-08-2013-13/+20
|
* Switch to isort 5 for pylint's own codeDamien Baty2020-08-187-12/+7
|
* Disable redefined-outer-name necessary by design with pytestPierre Sassoulas2020-05-011-0/+1
|
* Remove unittest.main() not required with pytestPierre Sassoulas2020-05-012-12/+2
|
* Add missing copyright annotations for the past releasesClaudiu Popa2020-04-2713-18/+54
|
* Fix the broken tests: raises do not exist in PythonPierre Sassoulas2020-04-201-2/+2
| | | | Closes #3495
* [tests lint] Fix function redefinition in check_docsPierre Sassoulas2020-04-201-2/+2
| | | | Permit to see the problem more clearly for bug #3495
* [tests lint] Fix all W0223: abstract-method in pylint's own testsPierre Sassoulas2020-04-202-0/+6
|
* [tests lint] Fix all W0613 unused-argument in pylint's own testsPierre Sassoulas2020-04-207-17/+15
|