| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
We don't want to use the project's pylintrc during tests, because
it means that a change in our config could break tests.
But we want to see if the changes to the default break tests.
Create a private '_Run' class in pylint.testutil._run
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
Remove the "main" function because this is meaningless for testing.
Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com>
|
|
|
|
|
|
|
| |
- move "tests/prop_data/*" to "tests/data/."
- make tests/data/property_pattern.py correctly executable.
- remove class members not related to "property" from test/data/property_pattern.py.
- modify tests of pyreverse to pass all tests.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* pyreverse - Handle a regression with typehints of type astroid.Subscript
Closes #4845
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* pyreverse - Handle a regression with typehints of type astroid.Subscript
- Add test-case to pyreverse data files
Closes #4845
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
| |
(#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``
|
|
|
|
|
|
|
| |
* Pyreverse - Show class has-a relationships inferred from type-hints
Closes #4744
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|