summaryrefslogtreecommitdiff
path: root/pylint/pyreverse/printer.py
Commit message (Collapse)AuthorAgeFilesLines
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-291-2/+2
|
* Remove remaining code parts related to __implements__ (#8414)Andreas Finkler2023-03-091-2/+0
| | | Refs #8404
* Feature: distinct Composition and Aggregation arrows (#7836)Alvaro Frias2022-11-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update Linker to add aggregations_type and associations_type to nodes Update logic of nodes to check what kind of relationship does nodes have (association, aggregation) Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update ClassDiagram's extrac_relationship method to add aggregations links Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update DiagramWriter to generate AGGREGATION edges Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update printers to show aggregations Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update tests with changes on aggregations Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update Linker to add aggregations_type and associations_type to nodes Update logic of nodes to check what kind of relationship does nodes have (association, aggregation) Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update ClassDiagram's extrac_relationship method to add aggregations links Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update DiagramWriter to generate AGGREGATION edges Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update tests with changes on aggregations Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Apply pylint pre-commit correction Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Apply mypy corrections Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add towrncrier fragment Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update towncrier fragment Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update towncrier fragment Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update doc/whatsnew/fragments/6543.feature Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com> * Add documentation Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * fix typo Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Add type hints Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * Update pylint/pyreverse/diagrams.py Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update type hints Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update fragment * Update fragment Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Some initial line wrapping of docstrings (#6672)Daniël van Noord2022-05-231-1/+3
|
* Use ``python-typing-update`` on ``pylint/pyreverse`` directoryDaniël van Noord2022-04-141-13/+16
|
* 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-6/+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.
* Upgrade ``pydocstringformatter`` to ``0.5.0`` (#5910)Daniël van Noord2022-03-131-1/+4
|
* Fix pyreverse type hinting for class methods (#5881)Téo Bouvard2022-03-091-8/+7
| | | | | | | | | | | | | | | * 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.
* Update ``pydocstringformatter`` to 0.4.0 (#5787)Daniël van Noord2022-02-101-3/+3
|
* Format docstrings with ``pydocstringformatter``Daniël van Noord2022-01-021-3/+1
|
* Bump pylint to 2.12.0, update changelogv2.12.0Pierre Sassoulas2021-11-251-1/+2
| | | | Closes #5250
* Add basic typing to ``pylint/pyreverse``Daniël van Noord2021-10-021-3/+3
|
* Bump pylint to 2.10.2-dev0, update changelogAshley Whetter2021-08-201-0/+1
|
* Bump pylint to 2.10.1, update changelogv2.10.1Ashley Whetter2021-08-201-0/+1
|
* Bump pylint to 2.10.0, update changelogv2.10.0Pierre Sassoulas2021-08-201-0/+1
|
* Use alias for astroid.nodes 04 (#4869)Marc Mueller2021-08-191-4/+4
| | | | | | | | | * Use alias for astroid nodes 04 * Resolve name conflicts * Apply suggestions from code review Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* ``pyreverse``: Add option for colored output (#4850)Andreas Finkler2021-08-151-1/+10
| | | | | | | * 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-0/+24
| | | | | | | | | | | | | | | | | | | | | | | * 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
* Move logic for constructing the label from ``DiagramWriter`` into the ↵DudeNr332021-08-081-1/+4
| | | | | | ``Printer`` classes. The writers should only dictate WHAT to write, and the printers are responsible for the HOW.
* Create common ``Printer`` base class for ``pyreverse`` and improve typing. ↵Andreas Finkler2021-08-031-0/+92
(#4731) * Create common ``Printer`` base class for Pyreverse, and improve typing. * Use ``abc.ABC`` as metaclass for ``Printer`` instead of raising ``NotImplementedError`` * Rename ``vcgutils.py`` to ``vcg_printer.py``