Commit Graph

11 Commits

Author SHA1 Message Date
Mark Byrne
f46904ab9b
Narrow the scope of the `unnecessary-ellipsis` checker (#6081)
* Narrow the scope of the ``unnecessary-ellipsis`` checker to functions & classes which contain both a docstring and an ellipsis.
* Emit the warning when the body contains an ellipsis expression and at least one
other item.

Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
2022-04-01 20:05:09 +02:00
Mark Byrne
789a3818fe
Fix false positive for the `unnecessary-ellipsis` checker (#6039)
When an ellipsis is used in a lambda expression.

  Closes #6036

Co-authored-by: Mark Byrne <mark.byrne@rabobank.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2022-03-30 22:20:36 +02:00
Mark Byrne
d12c770188
Fix crash for `unneccessary-ellipsis` checker (#6038)
When an ellipsis is used inside of a list or inside a container

Closes #6037

Co-authored-by: Mark Byrne <mark.byrne@rabobank.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2022-03-30 20:00:57 +02:00
Joe Young
209030d933
unnecessary-ellipsis false positive: allow ellipsis as default argument (#6007) 2022-03-28 11:27:32 +02:00
Pierre Sassoulas
ec4a3f7f1e Add a pre-commit hook to check the copyright notice
Fix the existing file so they have a notice.
No header for setup.py or examples or doc
2022-03-24 13:06:15 +01:00
Daniël van Noord
849bdda236 Remove uses of `NodeNG.doc in favour of doc_node` 2022-03-15 09:35:54 +01:00
Daniël van Noord
663a2be7ab
Upgrade `pydocstringformatter to 0.5.0` (#5910) 2022-03-13 13:15:46 +01:00
Daniël van Noord
595ec422d6
Update `pydocstringformatter` to 0.4.0 (#5787) 2022-02-10 19:30:15 +01:00
Daniël van Noord
fffde57ac0 Format docstrings with `pydocstringformatter` 2022-01-02 23:52:24 +01:00
Pierre Sassoulas
7d25842515
Add typing and uniformize the checker registering in Pylinter (#5558)
Remove verbose docstring in code, keep them in example and doc

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-12-27 21:30:34 +01:00
Mark Byrne
78eed6af30
New checker - Detect use of unnecessary ellipsis (#5470)
Closes #5460
2021-12-13 22:48:33 +01:00