summaryrefslogtreecommitdiff
path: root/tests/extensions/test_check_docs.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Bump pylint to 2.12.0, update changelogv2.12.0Pierre Sassoulas2021-11-251-0/+2
| | | | Closes #5250
* Fix ``accept-no-yields/return-doc`` for partially correct docstringsDaniël van Noord2021-11-131-0/+7
|
* 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
* 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-201-95/+95
|
* Rename `pylint.testutil.Message` to `pylint.testutil.TestMessage` (#5043)Daniël van Noord2021-09-181-95/+121
| | | * Rename `Message` to `TestMessage``
* Spelling and grammar fixesVille Skyttä2021-09-171-2/+2
|
* Bump pylint to 2.11.0, update changelogv2.11.0Pierre Sassoulas2021-09-161-0/+1
|
* Add typing with `PyAnnotate` to `./tests` (#4950)Daniël van Noord2021-09-041-88/+90
| | | | | | * 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>
* Bump pylint to 2.9.3, update changelogv2.9.3Pierre Sassoulas2021-07-011-0/+1
|
* Fix copyright links (#4647)Marc Mueller2021-07-011-1/+1
| | | | * 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
|
* Rename copying to license and upgrade the setup.cfg (#4338)Pierre Sassoulas2021-04-111-1/+1
|
* Apply copyrite --contribution-thresholdPierre Sassoulas2021-02-211-2/+4
|
* 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
* 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
|
* Update formatting following black and isort updatePierre Sassoulas2020-09-101-2/+1
|
* Sets up copyrighthippo912020-08-201-1/+1
|
* Add missing copyright annotations for the past releasesClaudiu Popa2020-04-271-2/+4
|
* 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] Disable all the too-many-public-methods warningPierre Sassoulas2020-04-201-0/+3
| | | | Test classes do not need to be reused and do not need a great API.
* [tests lint] Fix some E0102: method already defined in testsPierre Sassoulas2020-04-201-2/+2
| | | | Some because the other tests were not working and fixing them is hard.
* [tests lint] Fix all W0612 unused-variable in pylint's own testsPierre Sassoulas2020-04-201-2/+2
|
* Exempt kwonly arguments when they are annotated from missing-type-doc. Close ↵Claudiu Popa2019-09-231-0/+18
| | | | #3092
* Remove redundant compatibility code (#3097)Hugo van Kemenade2019-09-121-5/+0
| | | | We no longer support Python 2 so we can remove the compatibility code we had in place for that version.
* [black style] Apply black style on unformatted python filePierre Sassoulas2019-07-221-526/+476
|
* Stopped installing tests with packageAshley Whetter2019-06-201-0/+2191