summaryrefslogtreecommitdiff
path: root/pylint/checkers/raw_metrics.py
Commit message (Collapse)AuthorAgeFilesLines
* Drop support for Python 3.7 (#8609)Marc Mueller2023-04-241-7/+1
| | | | | * 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
|
* Add typing to various checkers (#6695)Daniël van Noord2022-05-251-4/+4
|
* Subclass ``BaseRawFileChecker`` and ``BaseTokenChecker``Daniël van Noord2022-04-191-3/+0
|
* Add typing to BaseChecker.process_token (#6273)Pierre Sassoulas2022-04-191-3/+6
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Use ``python-typing-update`` on ``pylint/checkers`` directoryDaniël van Noord2022-04-141-3/+5
|
* Remove the ``future_option_parsing`` keyword (#6253)Daniël van Noord2022-04-111-3/+0
|
* 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-15/+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.
* Upgrade ``pydocstringformatter`` to ``0.5.0`` (#5910)Daniël van Noord2022-03-131-1/+3
|
* Update ``pydocstringformatter`` to 0.4.0 (#5787)Daniël van Noord2022-02-101-5/+5
|
* Add typing and uniformize the checker registering in Pylinter (#5558)Pierre Sassoulas2021-12-271-3/+5
| | | | | Remove verbose docstring in code, keep them in example and doc Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Bump pylint to 2.12.0, update changelogv2.12.0Pierre Sassoulas2021-11-251-0/+1
| | | | Closes #5250
* Refactor ``LinterStats`` (#5074)Daniël van Noord2021-10-071-33/+31
| | | | | | | | * 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>
* [pre-commit.ci] pre-commit autoupdate (#5082)pre-commit-ci[bot]2021-09-281-1/+1
| | | | | | | | | | | * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v2.26.0 → v2.28.0](https://github.com/asottile/pyupgrade/compare/v2.26.0...v2.28.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks 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>
* Bump pylint to 2.11.0, update changelogv2.11.0Pierre Sassoulas2021-09-161-0/+1
|
* Add typing to all calls to ``self.stats`` (#4973)Daniël van Noord2021-09-151-6/+11
| | | | | | | | | | | | | | | * 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-2/+2
| | | | | | | | | | | | | | | | * 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>
* Fix copyright links (#4647)Marc Mueller2021-07-011-1/+1
| | | | * Fix link in license header * Update link to astroid bump_changelog
* Update copyrite noticev2.8.2Pierre Sassoulas2021-04-261-0/+1
|
* Changes after black updateMarc Mueller2021-04-261-1/+1
|
* Prepare for 2.8.0 releasepylint-2.8.0Pierre Sassoulas2021-04-241-1/+1
|
* Rename copying to license and upgrade the setup.cfg (#4338)Pierre Sassoulas2021-04-111-1/+1
|
* Formattinghippo912021-04-091-2/+1
|
* Revert "Refactor - Remove unused and untested code in utils"hippo912021-04-091-3/+10
| | | | This reverts commit 293a7f5e6add850e2f127dd1680a6e43fb1a6949.
* Refactor from old style typing to new style typingPierre Sassoulas2021-03-311-1/+1
|
* Remove unsued assignment in raw_metrics.pyPierre Sassoulas2021-03-281-1/+0
|
* Update copyright notice with copyritePierre Sassoulas2021-02-281-6/+0
|
* Apply copyrite --contribution-thresholdPierre Sassoulas2021-02-211-1/+2
|
* Remove the # coding, since PEP3120 the default is UTF8Pierre Sassoulas2021-02-211-1/+0
|
* Update formatting following black and isort updatePierre Sassoulas2020-09-101-2/+1
|
* Sets up copyrighthippo912020-08-201-1/+3
|
* Chore: use https links (#3679)谭九鼎2020-06-111-1/+1
|
* Add missing copyright annotations for the past releasesClaudiu Popa2020-04-271-1/+3
|
* Refactor - Remove unused and untested code in utilsPierre Sassoulas2019-03-291-8/+2
| | | | | There might be code that is used only in test but it's harder to detect.
* Refactor - Move refactor.utils function to the utils packagePierre Sassoulas2019-03-291-1/+1
| | | | | | | This permit to have less cross dependency as the utils package does not depend on anything. The checker package still depends on reporter. Also moved classes from __init__ to their own file in reporter.
* Style - Apply isort on all apllicable filesPierre Sassoulas2019-03-201-2/+2
|
* Reformat the code with blackClaudiu Popa2018-09-171-19/+23
|
* first make mypy pass by ignoring typessolanki2018-08-211-1/+2
|
* Update copyright noticesClaudiu Popa2018-07-151-1/+1
|
* Regenerate copyright noticesClaudiu Popa2017-12-151-0/+5
|
* Even more granular copyrights (thanks to copyrite)Claudiu Popa2016-07-231-2/+3
|
* Rename UnknownMessage, EmptyReport to UnknownMessageError, EmptyReportErrorGlenn Matthews2016-07-191-2/+2
|
* Move EmptyReport and UnknownMessage to pylint.exceptionsGlenn Matthews2016-07-191-1/+1
|
* Keep a consistent copyright notice across the board.Claudiu Popa2016-07-191-0/+2
| | | | | This was changed automatically in #894, but apparently we need to have the copyright notice somewhere.
* Remove obsolete comment.Claudiu Popa2016-07-101-4/+0
|
* Add the new shorter license header, including to missing files. Close #894.Claudiu Popa2016-06-011-15/+3
|
* format: check for & warn about trailing newlinesMike Frysinger2016-01-091-1/+0
| | | | | | | The new tests also catch a lot of files in the pylint code base that have trailing newlines, so clean them all up as well. Close #682
* fix get_type()Laura Médioni2015-11-061-1/+1
| | | | | It returned erroneous number of comment lines. tok_type is set just once, here one must look at the current token