summaryrefslogtreecommitdiff
path: root/pylint/lint/report_functions.py
Commit message (Collapse)AuthorAgeFilesLines
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-291-2/+2
|
* Add typing to ``BaseChecker`` ``msgs`` and ``reports`` (#6456)Daniël van Noord2022-04-251-3/+3
|
* Finish typing of ``pylint/lint/report_functions.py`` (#6429)Daniël van Noord2022-04-211-7/+7
|
* Add some manual typing changes (#6325)Daniël van Noord2022-04-141-2/+2
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Use ``python-typing-update`` on ``pylint/lint`` directoryDaniël van Noord2022-04-141-4/+4
|
* 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-3/+3
|
* Refactor ``LinterStats`` (#5074)Daniël van Noord2021-10-071-19/+14
| | | | | | | | * 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>
* Add typing in ``pylint.reporters`` (#5004)Pierre Sassoulas2021-09-161-5/+5
| | | | | | | | | | | | * Add typing and fix small issue in pylint.reporters Fix typing error in pylint/checkers/imports.py. Add typing of report related code outside of pylint.reporters. * Remove unused argument in pylint.reporters.VNode constructor * Simplify and specify the typing in reporters nodes Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add typing to all calls to ``self.stats`` (#4973)Daniël van Noord2021-09-151-10/+28
| | | | | | | | | | | | | | | * 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>
* Change lines to lists (#5009)Daniël van Noord2021-09-141-2/+2
|
* Add ``Consider-using-f-string`` checker (#4796)Daniël van Noord2021-08-301-1/+1
| | | | | | | | | | | | | | | | * 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>
* Change some if/assign blocks to if-expressionsNick Drozd2021-08-201-4/+1
|
* Fix copyright links (#4647)Marc Mueller2021-07-011-1/+1
| | | | * Fix link in license header * Update link to astroid bump_changelog
* Bump pyupgrade from 2.16.0 to 2.18.1 (#4496)dependabot[bot]2021-05-241-5/+3
| | | | | | | | | | | | | | | | * Bump pyupgrade from 2.16.0 to 2.18.1 Bumps [pyupgrade](https://github.com/asottile/pyupgrade) from 2.16.0 to 2.18.1. - [Release notes](https://github.com/asottile/pyupgrade/releases) - [Commits](https://github.com/asottile/pyupgrade/compare/v2.16.0...v2.18.1) Signed-off-by: dependabot[bot] <support@github.com> * Update pre-commit-config * Changes after pyupgrade update Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Rename copying to license and upgrade the setup.cfg (#4338)Pierre Sassoulas2021-04-111-1/+1
|
* Add back License not handled by a scriptPierre Sassoulas2020-04-271-0/+3
| | | | See https://github.com/PyCQA/pylint/pull/3516#discussion_r415567865
* [lint package refactor] Create a file for the report functionsPierre Sassoulas2020-04-261-0/+73