summaryrefslogtreecommitdiff
path: root/pylint/pyreverse
Commit message (Collapse)AuthorAgeFilesLines
* Added escaping of vertical bar character in annotation labels (#8610)ViRuSTriNiTy2023-04-261-1/+9
|
* Bump astroid to 3.0.0a1 (#8626)Marc Mueller2023-04-251-1/+7
|
* [pyreverse] Bugfix: strip "/" at the end of the file (#8517)Alvaro Frias2023-04-021-1/+1
| | | | Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add Pyreverse option to exclude standalone nodes (#8520)Nick Drozd2023-04-022-0/+21
| | | | | | | | | | | * Add Pyreverse option to exclude standalone nodes * Add test * Add package test * Fix test names * Clean up test files
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-2912-24/+24
|
* `pyreverse`: use colorblind friendly default colors (#8415)Andreas Finkler2023-03-102-18/+11
| | | | | | | Using Paul Tol's colorblind palette. Also enable both hex codes and css/html color names Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* pyreverse: drop support for .vcg format (#8426)Andreas Finkler2023-03-104-300/+1
|
* pyreverse: Add show-stdlib option (#8190)Avram Lubkin2023-03-102-4/+18
| | | | | | | | | | | | | * pyreverse: Add show-stdlib option * Switch to astroid.modutils.is_standard_module * Add tests * Fix quotes in whatsnew fragment * Update for astroid 2.15.0 * Recategorize news fragment
* Remove remaining code parts related to __implements__ (#8414)Andreas Finkler2023-03-099-43/+7
| | | Refs #8404
* [__implements__] Remove everything related to the rejected PEP245 (#8404)Pierre Sassoulas2023-03-082-50/+2
|
* Use UninferableBase instead of UninferableDaniel van Noord2023-03-072-4/+4
|
* Upgrade to astroid 2.15.0 (#8387)Pierre Sassoulas2023-03-072-7/+7
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Support globbing patterns for source-roots (#8281)Alexey Pelykh2023-02-211-4/+4
| | | Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com>
* Add ``--version`` option to pyreverse (#8257)Andreas Finkler2023-02-101-0/+6
|
* Add `--color-palette` option to `pyreverse` (#8223)Andreas Finkler2023-02-092-21/+33
|
* Support Implicit Namespace Packages (PEP 420) (#8153)Alexey Pelykh2023-02-091-2/+17
| | | Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com>
* [style] Limit line length and complexity using flake8 (#8064)Pierre Sassoulas2023-01-163-7/+12
| | | 125 is a good start. The check was activated in pylint with value = 100, but flake8 is less lenient than pylint and does not make any exceptions (for docstrings, strings and comments in particular).
* Prevent `pyreverse` crash when processing attributes assigned via tuple ↵Andreas Finkler2023-01-081-1/+3
| | | | unpacking (#8032)
* [pre-commit] Upgrade to black 23.1a1 with 2023's formatting (#7965)Pierre Sassoulas2022-12-271-1/+0
|
* Fix `bandit` high-severity warnings and use pre-commit (#7913)Mark Byrne2022-12-091-5/+2
| | | | | | | | | Remove `shell=True` argument of `subprocess.call`. Refactor: Use `subprocess.run` instead of `subprocess.call`. Add `bandit` to .pre-commit-config.yaml. Use `gitpython` for clone command. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Feature: distinct Composition and Aggregation arrows (#7836)Alvaro Frias2022-11-278-11/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Bump mypy from 0.982 to 0.990 (#7769)dependabot[bot]2022-11-141-2/+1
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add R1737 use-dict-literal-without-kwargsRobert Hofer2022-11-093-129/+142
|
* Rename `broad-except` and new check `broad-exception-raised` (#7709)Dani Alcala2022-11-051-2/+2
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Feature italics abstract methods (#7436)Alvaro Frias2022-09-133-6/+19
| | | | | | | | | 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>
* Turn on ``mypy`` strict mode 🎉 (#7448)Daniël van Noord2022-09-094-8/+8
| | | | | | | | | | * Ignore subclasses of Any * Add ignores for imported code and remove casts * Add disables for uninferable return values * Turn on ``mypy`` strict mode
* Finish some unfinished typing signaturesDaniël van Noord2022-09-091-1/+3
|
* Complete typing of all generic types (#7406)Daniël van Noord2022-09-041-1/+1
| | | | And update ``mypy`` configuration
* Fix typing of most inference callsDaniël van Noord2022-07-131-1/+2
|
* Emit fewer DeprecationWarnings in pyreverse (#6869)Jacob Walls2022-06-061-7/+8
|
* Fix `pyreverse` type annotations for attributes using alternative union ↵Andreas Finkler2022-05-293-10/+9
| | | | | | | | | | | 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 return type annotations in MermaidJS diagrams.DudeNr332022-05-271-1/+1
|
* Refactor and deprecate resolving of interface implementations in `pyreverse` ↵Andreas Finkler2022-05-271-24/+17
| | | | | | | | | | | | | | | (#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>
* Remove unnecessary base class and dead code in `pylint.pyreverse.utils` (#6712)Andreas Finkler2022-05-271-43/+6
| | | | | * Remove unnecessary base class and dead code * Add ChangeLog and whatsnew entry
* Some initial line wrapping of docstrings (#6672)Daniël van Noord2022-05-231-1/+3
|
* Fix "dictionary changed size during iteration" (#6612)nyabkun2022-05-181-1/+1
| | | * Fix "dictionary changed size during iteration"
* Run linking and diadef handling with patched `sys.path` (#6617)Andreas Finkler2022-05-171-3/+3
| | | * Use separate directory for pyreverse related test data
* Create constant for default ignore list (#6615)Andreas Finkler2022-05-152-2/+4
|
* Add typing to `pylint.pyreverse.inspector` (#6614)Andreas Finkler2022-05-152-27/+49
| | | | | | | * Add typing to `pylint.pyreverse.inspector` * Import `Callable` from `typing` to fix compatibility with Python 3.7 and 3.8 * Fix return type of `interfaces` function
* Finish typing of `pylint.pyreverse.utils` (#6549)Andreas Finkler2022-05-111-35/+29
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add typing to `pylint.pyreverse.diagrams.py` (#6547)Andreas Finkler2022-05-081-43/+78
| | | | | | | | | | | * Add typing to `pylint.pyreverse.diagrams.py` * Apply suggestions from code review Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> * Remove unused method `nodes()` and use node classes through `nodes.<CLASS>` Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add typing to `pylint.pyreverse.main` and `pylint.pyreverse.diadefslib` (#6518)Andreas Finkler2022-05-062-17/+26
|
* Activate the ``duplicate-code`` checker (#6121)Pierre Sassoulas2022-05-051-0/+1
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Create a path type of argument that automatically expand user/var (#6494)Pierre Sassoulas2022-05-031-1/+1
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Run development version of ``pydocstringformatter`` (#6469)Daniël van Noord2022-04-283-5/+5
|
* Remove some words from custom dictionary and update spellingDaniël van Noord2022-04-261-1/+1
|
* [spelling] Remove remaining typoes detected by the spelling checkerPierre Sassoulas2022-04-263-7/+4
|
* Fix handling of default value for extend action in Python 3.7DudeNr332022-04-241-1/+1
|
* Finish typing of ``pylint/__init__.py``Daniël van Noord2022-04-231-1/+3
|
* Transition ``pyreverse`` from ``optparse`` to ``argparse`` (#6334)Daniël van Noord2022-04-152-12/+12
|