summaryrefslogtreecommitdiff
path: root/tests/pyreverse/test_printer.py
Commit message (Collapse)AuthorAgeFilesLines
* Add a pre-commit hook to check the copyright noticePierre Sassoulas2022-03-241-1/+1
| | | | | 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-4/+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.
* Fix pyreverse type hinting for class methods (#5881)Téo Bouvard2022-03-091-0/+10
| | | | | | | | | | | | | | | * Fix pyreverse type hinting for class methods This commit fixes the alignment of arguments and their type annotations in pyreverse printer output. It does so by checking for the type of the current function rather than the name of the first argument. This allows class methods having a non-standard first argument (different from "self" or "cls") to be correctly serialized in class diagrams. * Add test for method with None args According to astroid docs, this happens for builtin functions implemented in C. In this case, we return an empty argument list.
* Bump pylint to 2.12.0, update changelogv2.12.0Pierre Sassoulas2021-11-251-0/+1
| | | | Closes #5250
* 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-1/+1
| | | | | | * Add mypy_extensions to requirement for ``NoReturn`` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* ``pyreverse``: Add option for colored output (#4850)Andreas Finkler2021-08-151-1/+1
| | | | | | | * Add option to produce colored output from ``pyreverse`` * Use indentation in PlantUML diagrams Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* ``pyreverse``: add PlantUML output (#4846)Andreas Finkler2021-08-141-1/+21
| | | | | | | | | | | | | | | | | | | | | | | * Extract helper method to get annotated arguments into ``Printer`` base class. * Add ``Printer`` subclass for PlantUML output * Add functional test for ``PlantUmlPrinter`` * Add tests for specific layout for ``PlantUmlPrinter`` * Extract test helper function to remove code duplication * Add new test class to check type annotations * Cleanup generated .puml files after tests finished * Create a factory function to get the correct ``Printer`` class for a given filetype. * Fix unittest after adding a new class to the test data. * Add changelog and whatsnew entry * Add "plantuml" as possible extension for PlantUML output
* Update license link to point to main, not masterDudeNr332021-08-091-1/+1
|
* Add tests for ``Printer`` classes which are not covered yet implicitly ↵DudeNr332021-08-091-0/+32
through ``test_writer``