| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
- 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 - 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
|
| |
|
| |
|
|
|
| |
See : https://github.com/PyCQA/pylint/pull/5010#issuecomment-920291278
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* Create a file for pylint.reporters.BaseWritter
* Calculate visitor name only once in Reporter nodes
Remove dead code that was always failing and replace it by
an attribute directly.
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
|
|
|
|
|
|
| |
* Add mypy_extensions to requirement for ``NoReturn``
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add type annotations to ``visit`` & ``leave`` calls
This adds typing to most calls that visit nodes. All other changes are
due to mypy errors resulting from introduction of typing.
* Fix outstanding mypy issues
This removes some of the `type: ignore` comments in favour of
solving the mypy issues these comments were surpressing.
* Fix remaining references to node_classes
Except for two references to node_classes in the changelog this should be the last of them
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add ``consider-using-f-string`` checker
This adds a checker for normal strings which are formatted
with ``.format()`` or '%'.
The message is a convention to nudge users towards using f-strings.
This closes #3592
* Update pylint code to use f-strings
After adding `consider-using-f-strings` the codebase showed numerous
cases of formatting which could be f-strings.
This commit changes most of these to become f-strings, or adds ignores.
* Apply suggestions from code review
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* Use alias for astroid nodes 04
* Resolve name conflicts
* Apply suggestions from code review
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
| |
* Add option to produce colored output from ``pyreverse``
* Use indentation in PlantUML diagrams
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.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
|
|
|
|
| |
``pylint.testutils.pyreverse``.
|
| |
|
|
|
|
| |
NamedTuple is not possible as some tests modify the instance attributes.
|
| |
|
|
|
|
| |
through ``test_writer``
|
|
|
|
| |
component.
|
| |
|
| |
|
|
|