summaryrefslogtreecommitdiff
path: root/tests/pyreverse
Commit message (Collapse)AuthorAgeFilesLines
* Add ``--version`` option to pyreverse (#8257) (#8258)github-actions[bot]2023-02-101-0/+13
| | | | | (cherry picked from commit bd22f2822f9344487357c90e18a8505705c60a29) Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com>
* Prevent `pyreverse` crash when processing attributes assigned via tuple ↵Andreas Finkler2023-01-082-0/+9
| | | | unpacking (#8032)
* Feature: distinct Composition and Aggregation arrows (#7836)Alvaro Frias2022-11-277-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Drop dependency on py module (#7829)Lumír 'Frenzy' Balhar2022-11-231-6/+3
| | | | | | | | | * pytest 7.2 no longer depends on py so it's better to drop it. `tmp_path` fixture is newer and uses `pathlib.Path` from stdlib instead of `LocalPath` from `py._path`. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com>
* Fail pytest runs on warnings (#7809)Jacob Walls2022-11-232-2/+5
| | | | | | | | | | | * Catch DeprecationWarning in pyreverse Follow-up to #6869 * Patch use of deprecated `astroid.node_classes` in test * Ignore DeprecationWarning in test_parseable_output_regression Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Bump mypy from 0.982 to 0.990 (#7769)dependabot[bot]2022-11-141-2/+2
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Remove xfail from passing testsDaniël van Noord2022-10-021-2/+0
|
* Resolve deprecation warning in pyreverse testJacob Walls2022-10-021-1/+1
|
* Feature italics abstract methods (#7436)Alvaro Frias2022-09-139-34/+34
| | | | | | | | | Update Pyreverse's dot and plantuml printers to detect when class methods are abstract and show them with italic font. For the dot printer update the label to use html-like syntax. Closes #7346 Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com>
* Finish unfinished typing in non core directories (#7443)Daniël van Noord2022-09-093-5/+12
| | | | | | | | * Add typing to setup calls in documentation folder * Finish some incomplete typing signatures in script * Add typing to unfinished signatures in the tests directory
* Finish some incomplete typing signatures (#7442)Daniël van Noord2022-09-092-6/+9
|
* Turn on ``check-untyped-defs`` in ``mypy`` (#7407)Daniël van Noord2022-09-091-3/+7
|
* Complete typing of all generic types (#7406)Daniël van Noord2022-09-046-24/+39
| | | | And update ``mypy`` configuration
* Remove ignores for ``LocalPath``Daniël van Noord2022-09-031-1/+1
|
* [pyreverse test] Silence a deprecation warning for __implements__ (#7243)Pierre Sassoulas2022-07-301-1/+2
|
* Add typing to ``exceptions`` checker (#7194)Daniël van Noord2022-07-161-1/+1
|
* Add typing to ``stdlib`` checker (#7192)Daniël van Noord2022-07-151-4/+4
|
* [typing] Add typing to the tests directory (#7183)Pierre Sassoulas2022-07-142-6/+7
|
* Update `astroid` to 2.12 (#7153)Jacob Walls2022-07-132-10/+21
| | | | | | | | Prevent `unused-import` for `six.with_metaclass` Update `contributors-txt` to 0.9.0 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add support of sharing message in multiple checkers. Fix DeprecatedChecker ↵Matus Valo2022-06-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | example (#6693) * Move message definitions from DeprecatedMixin * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Added typing and fixed unittests * Make DEPRECATED_MSGS and DEPRECATED_IMPORT_MSG class variables to make pylint happy * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Introduce shared messages * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Change Message codes in DeprecatedMixin to W49XX * Make mypy happy * Make pylint happy * Add support for building documentation for shared messages * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Make isort happy * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Circuvent isort * Move shared to extra message options and fix tests * Update deprecation_checker example * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update doc/exts/pylint_messages.py Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> * Update doc/exts/pylint_messages.py Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> * Make messages static class attributes * Keep MessageDefinition backward compatible * Apply suggestions from code review Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Fix `pyreverse` type annotations for attributes using alternative union ↵Andreas Finkler2022-05-295-0/+48
| | | | | | | | | | | syntax (#6720) * Fix `pyreverse` type annotations for attributes using alternative union syntax. * Fix `dot` output and add additional test cases * Apply suggestions from code review * Add changelog entry in `full.rst`
* Fix tests and add example for explicit `Union` type hint.DudeNr332022-05-272-3/+9
|
* Fix return type annotations in MermaidJS diagrams.DudeNr332022-05-274-6/+29
|
* Refactor and deprecate resolving of interface implementations in `pyreverse` ↵Andreas Finkler2022-05-271-1/+16
| | | | | | | | | | | | | | | (#6713) * Remove variables and code paths that are always static in productive use. * Add deprecation warning if an interface defined through ``__implements__`` is found. * Update pylint/pyreverse/inspector.py Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> * Group changelog entries together with refactor from #6712 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix "dictionary changed size during iteration" (#6612)nyabkun2022-05-183-0/+26
| | | * Fix "dictionary changed size during iteration"
* Change ``pyreverse`` outputDaniël van Noord2022-05-051-1/+1
|
* Disable fixme for internal uses before we make it optional in #3512 (#6482)Pierre Sassoulas2022-05-011-1/+1
|
* Functional tests for ``pyreverse`` (#6449)Andreas Finkler2022-04-308-0/+117
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* [spelling] Remove remaining typoes detected by the spelling checkerPierre Sassoulas2022-04-261-1/+1
|
* Transition ``pyreverse`` from ``optparse`` to ``argparse`` (#6334)Daniël van Noord2022-04-151-0/+22
|
* Use ``python-typing-update`` on half of the ``tests`` directory (#6317)Daniël van Noord2022-04-147-14/+31
|
* Update optdicts in ``pyreverse`` (#6209)Daniël van Noord2022-04-121-1/+42
|
* [refactor] Use for v in *.values() instead of _, v in *.items()Pierre Sassoulas2022-04-021-1/+1
|
* Add a pre-commit hook to check the copyright noticePierre Sassoulas2022-03-249-7/+15
| | | | | 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-247-66/+8
| | | | | | 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.
* ``pyreverse``: better error messages for unsupported file formats (#5951)Andreas Finkler2022-03-221-0/+85
| | | | | * Pyreverse: better error messages for unsupported file formats * Apply suggestions from code review.
* Fix pyreverse type hints for methods returning None (#5916)Téo Bouvard2022-03-198-4/+30
|
* Fix pyreverse type hinting for class methods (#5881)Téo Bouvard2022-03-098-3/+21
| | | | | | | | | | | | | | | * 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-108-17/+17
|
* [pre-commit.ci] pre-commit autoupdate (#5758)pre-commit-ci[bot]2022-02-011-1/+1
| | | | | | | | | | | | | * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 21.12b0 → 22.1.0](https://github.com/psf/black/compare/21.12b0...22.1.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Format docstrings with ``pydocstringformatter``Daniël van Noord2022-01-025-11/+7
|
* Fix typos accross the whole codebase (#5575)Pierre Sassoulas2021-12-211-1/+1
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* fix deleting files for pyreverse tests (#5476)Antonio Quarta2021-12-051-1/+7
|
* Add mermaidjs as format output for pyreverse (#5272)Antonio Quarta2021-12-036-0/+160
| | | | | add mermaid js printer, fix accepted output format without graphviz Make an adapter for package graph, use class until mermaid don't add a package diagram type. Add mmd and html formats to additional commands
* Bump pylint to 2.12.0, update changelogv2.12.0Pierre Sassoulas2021-11-256-2/+8
| | | | Closes #5250
* Fix typo in pylintrc for useless-suppression (#5303)Daniël van Noord2021-11-231-1/+0
| | | | | | | | | | | * Fix typo in pylintrc for useless-suppression * Fix CI for information messages * Remove useless disables * Update CI and docs for 3.8+ Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Modify sources along with results of pr review.Takahide Nojima2021-10-2613-15/+43
| | | | | | | - 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.
* Fix exception of pyreverse in handling property function within a class.Takahide Nojima2021-10-261-0/+27
|
* pyreverse - Add project modules to sys.path (#4856)Mark Byrne2021-10-173-17/+48
| | | | | | | | | | | | | | | * pyreverse - Add project modules to sys.path - Use the fix_import_path context manager in the existing pyreverse tests - Style refactor: - Use a constant for the path - Move the constants closer to the top of the module - Add a test for the fix_import_path context manager to ensure the project root directory is in sys.path - Prevent re-defining from outer scope - Add a type-hint & docstrings Closes #2479
* Spelling and grammar fixesVille Skyttä2021-09-171-1/+1
|