Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Allow no type in Numpy param docstrings for ``mising-param-doc`` (#5231) | Daniël van Noord | 2021-10-31 | 1 | -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 Y | 2021-10-25 | 1 | -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 Noord | 2021-10-18 | 1 | -11/+11 |
| | | | Closes #3733 | ||||
* | Improve documentation of ``docparams`` extension and fix tests (#5095) | Daniël van Noord | 2021-10-14 | 1 | -1/+83 |
| | | | This closes #4136 | ||||
* | Properly identify undocumented parameters and add new message called ↵ | Konstantina Saketou | 2021-10-10 | 1 | -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 regex | Daniël van Noord | 2021-09-29 | 1 | -1/+3 |
| | |||||
* | Make test decorator use ``checker.set_option()`` | Daniël van Noord | 2021-09-29 | 1 | -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 Noord | 2021-09-20 | 6 | -161/+161 |
| | |||||
* | Rename `pylint.testutil.Message` to `pylint.testutil.TestMessage` (#5043) | Daniël van Noord | 2021-09-18 | 6 | -161/+213 |
| | | | * Rename `Message` to `TestMessage`` | ||||
* | Spelling and grammar fixes | Ville Skyttä | 2021-09-17 | 2 | -3/+3 |
| | |||||
* | Add typing for ``json_reporter`` and sub-classes | Daniël van Noord | 2021-09-16 | 2 | -4/+10 |
| | |||||
* | Bump pylint to 2.11.0, update changelogv2.11.0 | Pierre Sassoulas | 2021-09-16 | 14 | -0/+14 |
| | |||||
* | Add typing to ``filepath`` (#4980) | Daniël van Noord | 2021-09-16 | 2 | -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 Noord | 2021-09-04 | 17 | -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 Noord | 2021-09-03 | 1 | -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 Mueller | 2021-08-19 | 1 | -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 Drozd | 2021-08-18 | 1 | -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.4 | Pierre Sassoulas | 2021-07-20 | 1 | -1/+1 |
| | |||||
* | Bump pylint to 2.9.3, update changelogv2.9.3 | Pierre Sassoulas | 2021-07-01 | 13 | -0/+13 |
| | |||||
* | Fix copyright links (#4647) | Marc Mueller | 2021-07-01 | 15 | -15/+15 |
| | | | | * Fix link in license header * Update link to astroid bump_changelog | ||||
* | Make a smarter check to avoid 'useless-type-doc' false positive | Pierre Sassoulas | 2021-06-25 | 1 | -3/+3 |
| | |||||
* | Bump pylint to 2.9.0-dev1, update changelog | Pierre Sassoulas | 2021-06-17 | 1 | -0/+1 |
| | |||||
* | Add handle_message in BaseReporter and add typing | Pierre Sassoulas | 2021-06-15 | 2 | -6/+0 |
| | |||||
* | Revert "Fix existing tests" | Marc Mueller | 2021-06-10 | 1 | -1/+1 |
| | |||||
* | Fix existing tests | Marc Mueller | 2021-06-10 | 1 | -1/+1 |
| | |||||
* | Fix existing code | Marc Mueller | 2021-06-10 | 1 | -3/+3 |
| | |||||
* | Implemented new check consider-using-from-import (#4491) | yushao2 | 2021-05-23 | 1 | -1/+1 |
| | |||||
* | Prepare for 2.8.0 releasepylint-2.8.0 | Pierre Sassoulas | 2021-04-24 | 1 | -0/+1 |
| | |||||
* | Rename copying to license and upgrade the setup.cfg (#4338) | Pierre Sassoulas | 2021-04-11 | 15 | -15/+15 |
| | |||||
* | New ConfusingConsecutiveElifCheckr (for: #3920) (#4318) | DudeNr33 | 2021-04-11 | 1 | -0/+195 |
| | |||||
* | Update copyright notice with copyrite | Pierre Sassoulas | 2021-02-28 | 10 | -10/+10 |
| | |||||
* | Apply copyrite --contribution-threshold | Pierre Sassoulas | 2021-02-21 | 13 | -4/+18 |
| | |||||
* | Remove the # coding, since PEP3120 the default is UTF8 | Pierre Sassoulas | 2021-02-21 | 2 | -2/+0 |
| | |||||
* | Move from format() to f-string where it makes sense | Pierre Sassoulas | 2021-02-16 | 1 | -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 Miller | 2021-01-09 | 1 | -1/+39 |
| | | | | | | | | | | | | * fix #2738 * doc updates * add functional tests * fix formattting * fix formatting | ||||
* | empty-comment line number bug fix | Or Bahari | 2021-01-03 | 1 | -4/+4 |
| | |||||
* | Merge pull request #3842 from ↵ | hippo91 | 2020-10-18 | 1 | -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` | Luigi | 2020-09-25 | 1 | -15/+30 |
| | | |||||
| * | Adds support to `ignored-argument-names` in DocstringParameterChecker | Luigi | 2020-09-18 | 1 | -0/+125 |
| | | |||||
* | | Add empty-comment checker extension | Or | 2020-10-07 | 2 | -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 update | Pierre Sassoulas | 2020-09-10 | 1 | -2/+1 |
| | |||||
* | Sets up copyright | hippo91 | 2020-08-20 | 13 | -13/+20 |
| | |||||
* | Switch to isort 5 for pylint's own code | Damien Baty | 2020-08-18 | 7 | -12/+7 |
| | |||||
* | Disable redefined-outer-name necessary by design with pytest | Pierre Sassoulas | 2020-05-01 | 1 | -0/+1 |
| | |||||
* | Remove unittest.main() not required with pytest | Pierre Sassoulas | 2020-05-01 | 2 | -12/+2 |
| | |||||
* | Add missing copyright annotations for the past releases | Claudiu Popa | 2020-04-27 | 13 | -18/+54 |
| | |||||
* | Fix the broken tests: raises do not exist in Python | Pierre Sassoulas | 2020-04-20 | 1 | -2/+2 |
| | | | | Closes #3495 | ||||
* | [tests lint] Fix function redefinition in check_docs | Pierre Sassoulas | 2020-04-20 | 1 | -2/+2 |
| | | | | Permit to see the problem more clearly for bug #3495 | ||||
* | [tests lint] Fix all W0223: abstract-method in pylint's own tests | Pierre Sassoulas | 2020-04-20 | 2 | -0/+6 |
| | |||||
* | [tests lint] Fix all W0613 unused-argument in pylint's own tests | Pierre Sassoulas | 2020-04-20 | 7 | -17/+15 |
| |