summaryrefslogtreecommitdiff
path: root/tests/extensions
Commit message (Collapse)AuthorAgeFilesLines
* Finish unfinished typing in non core directories (#7443)Daniël van Noord2022-09-091-1/+5
| | | | | | | | * Add typing to setup calls in documentation folder * Finish some incomplete typing signatures in script * Add typing to unfinished signatures in the tests directory
* Finish some incomplete typing signatures (#7442)Daniël van Noord2022-09-091-6/+6
|
* Fix a crash in the ``docparams`` extension when raising the result of a ↵Jacob Walls2022-05-311-0/+11
| | | | function (#6767)
* Add a pre-commit hook to check the copyright noticePierre Sassoulas2022-03-243-1/+8
| | | | | Fix the existing file so they have a notice. No header for setup.py or examples or doc
* Simplify hard to maintain copyright noticePierre Sassoulas2022-03-241-11/+1
| | | | | | git is the source of truth for the copyright, copyrite (the tool) was taking exponentially longer with each release, and it's polluting the code with sometime as much as 50 lines of names.
* Introduce new 'import-private-name' checker (#5610)Arianna2022-03-141-0/+69
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Update ``pydocstringformatter`` to 0.4.0 (#5787)Daniël van Noord2022-02-101-1/+1
|
* Remove the ``check_docs`` extension and remove any references to it (#5730)Daniël van Noord2022-01-271-3/+1
|
* Enable missing-raises-doc to understand class hierarchies (#5278)kasium2021-12-151-2/+4
| | | | | | | | | | | | | Before, missing-raises-doc could not understand class hierarchies but just compared names. So, when a method documented a raise of a parent class, but a child exception was raised, the check failed. With this change, if the name compare doesn't help, the exception class hierarchy is checked. For that, possible_exc_types was changed to return classes instead of names Resolved #4955 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Move tests from ``TestConfusingConsecutiveElifChecker`` to functional tests ↵Daniël van Noord2021-12-131-198/+0
| | | | | | | (#5517) * Remove some redundant test Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Remove redundant tests in ``TestWhileUsed`` (#5518)Daniël van Noord2021-12-131-25/+0
|
* Move tests from ``TestParamDocChecker`` to functional tests (#5509)Daniël van Noord2021-12-131-301/+0
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Move ``Numpy`` tests from ``TestParamDocChecker`` to functional tests (#5507)Daniël van Noord2021-12-121-140/+0
|
* Fix incorrect classification of property docstrings in Numpy-style (#5498)Daniël van Noord2021-12-121-36/+0
|
* Move some of the Numpy tests out of ``TestParamDocChecker`` (#5492)Daniël van Noord2021-12-081-585/+0
|
* Move tests for Google docstrings from ``TestParamDocChecker`` to functional ↵Daniël van Noord2021-12-071-809/+1
| | | | | tests (#5484) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Move Sphinx docstrings out of ``TestParamDocChecker`` (#5450)Daniël van Noord2021-12-031-588/+0
|
* Move ``TestDocstringCheckerRaise`` to functional tests (#5444)Daniël van Noord2021-11-301-902/+0
|
* Move ``TestDocstringCheckerReturn`` to functional tests (#5438)Daniël van Noord2021-11-301-720/+0
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Move ``TestForAnyAll`` to functional tests (#5436)Arianna Y2021-11-291-247/+0
| | | | | * Move test_for_any_all to functional * Convert additional for_any_all tests to functional
* Move ``TestDocstringCheckerYield`` to functional tests (#5435)Daniël van Noord2021-11-291-514/+0
|
* Bump pylint to 2.12.0, update changelogv2.12.0Pierre Sassoulas2021-11-251-0/+2
| | | | Closes #5250
* Migrate test for extension to functional testsPierre Sassoulas2021-11-2321-1100/+0
| | | | This permit to upgrade the fixtures in pre-commit.
* Move ``misplaced-comparison-constant`` to optional extension (#5298)Daniël van Noord2021-11-141-1/+1
| | | | | | | * Move ``misplaced-comparison-constant`` to optional extension * Update functional tests to increase coverage Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix ``accept-no-yields/return-doc`` for partially correct docstringsDaniël van Noord2021-11-133-0/+28
|
* 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
|