summaryrefslogtreecommitdiff
path: root/pylint/typing.py
Commit message (Collapse)AuthorAgeFilesLines
* Drop support for Python 3.7 (#8609)Marc Mueller2023-04-241-6/+3
| | | | | * Drop support for Python 3.7 * Update py-version + classifier * Update functional tests
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-291-2/+2
|
* 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 default_enabled option to optional message dict (#7629)Marc Mueller2022-10-251-0/+1
|
* Complete typing of all generic types (#7406)Daniël van Noord2022-09-041-2/+8
| | | | And update ``mypy`` configuration
* Add support of sharing message in multiple checkers. Fix DeprecatedChecker ↵Matus Valo2022-06-161-0/+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>
* Store namespaces respective to directories (#6789)Daniël van Noord2022-06-041-0/+4
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Move AstCallback (#6502)Marc Mueller2022-05-051-5/+0
|
* Fix AstCallbackMethod typing (#6445)Marc Mueller2022-05-051-6/+0
|
* Add further typing to ``BaseChecker`` (#6461)Daniël van Noord2022-04-261-6/+12
| | | | * Use a ``TypedDict`` for the keys in message definitions
* Add typing to ``BaseChecker`` ``msgs`` and ``reports`` (#6456)Daniël van Noord2022-04-251-0/+15
|
* Add last typing to ``pylint/utils`` (#6369)Daniël van Noord2022-04-181-0/+12
|
* Use ``python-typing-update`` on ``pylint`` directoryDaniël van Noord2022-04-141-6/+8
|
* Create ``_OutputFormatAction`` (#6267)Daniël van Noord2022-04-111-0/+7
|
* Number of small refactors in ``argparse`` code (#6266)Daniël van Noord2022-04-111-2/+21
|
* Add ``Options`` and ``OptionsDict`` to typing utilsDaniël van Noord2022-04-061-1/+7
|
* 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-0/+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.
* Update ``pydocstringformatter`` to 0.4.0 (#5787)Daniël van Noord2022-02-101-5/+5
|
* Fix remaining typing issues for ``PyLinter`` and related functions (#5663)Daniël van Noord2022-02-081-0/+6
|
* Fix a typo in pylint/typing.pyPierre Sassoulas2022-01-021-1/+1
|
* Add ``end_lineno`` and ``end_col_offset`` to ``MessageLocationTuple`` (#5343)Daniël van Noord2021-11-221-0/+2
|
* Merge ``MessagesHandlerMixIn`` into ``PyLinter`` (#5136)Daniël van Noord2021-10-171-1/+11
| | | * Merge ``MessagesHandlerMixIn`` into ``PyLinter``
* Refactor ``LinterStats`` (#5074)Daniël van Noord2021-10-071-10/+1
| | | | | | | | * Refactor ``self.stats`` on linter and checker This adds a new class ``LinterStats`` which is used to store all kinds of stats during a run of ``pylint``. Tests have been changed slightly to be able to use the new class. Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Type `add_message` and add `MessageLocationTuple` (#5050)Daniël van Noord2021-09-211-0/+11
| | | | | | * Type `add_message` and add `MessageLocationTuple` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add typing to ``filepath`` (#4980)Daniël van Noord2021-09-161-1/+39
| | | | | | | | | | * Change tests for ``filepath`` changes * Add pylint/typing.py and FileItem NamedTuple * Use NamedTuple more efficiently * Fix errors and tests after adding warning * Add deprecation for future API change in Checker Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add typing to all calls to ``self.stats`` (#4973)Daniël van Noord2021-09-151-0/+14
* Add typing to all calls to ``self.stats`` All checkers inherit from a baseclass which has a ``stats`` attribute. This attribute has a fairly unmanageable type, but the current typing includes all variations of the attribute. Other changes not directly related to ``self.stats`` are due to ``mypy``warnings. This incorporate the feedback received in #4954 * Add ``CheckerStatistic`` class to ``pylint/typing`` * Guard `typing.Counter` import Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>