summaryrefslogtreecommitdiff
path: root/pylint/lint/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Add typing to ``filepath`` (#4980)Daniël van Noord2021-09-161-6/+3
| | | | | | | | | | * 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 with `PyAnnotate` to `./tests` (#4950)Daniël van Noord2021-09-041-3/+3
| | | | | | * Add mypy_extensions to requirement for ``NoReturn`` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* 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>
* Prevent crashing when it's impossible to create the issue templatePierre Sassoulas2021-08-181-4/+7
| | | | Closes #4865
* Add extension check against use of while loops (#4860)Nick Drozd2021-08-181-3/+3
| | | | | * Move stray functional tests * Clean up some while loops * Add extension check against use of while loops
* Permit to lint to the end in case of crash on a file (#4810)Pierre Sassoulas2021-08-121-0/+57
| | | | | | | | | * Permit to lint to the end in case of crash on a file And add pre-filled issue template so it's easier to open an issue in pylinthome * Print full traceback when a crash occur See discussion here: https://github.com/PyCQA/pylint/pull/4810\#issuecomment-897735720
* Fix copyright links (#4647)Marc Mueller2021-07-011-1/+1
| | | | * Fix link in license header * Update link to astroid bump_changelog
* Rename copying to license and upgrade the setup.cfg (#4338)Pierre Sassoulas2021-04-111-1/+1
|
* Move utils.expand_module in its own file in lintPierre Sassoulas2021-04-031-2/+2
| | | | We never used it anywhere else than lint so it belong in lint.
* 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 utility functionsPierre Sassoulas2020-04-261-0/+73