summaryrefslogtreecommitdiff
path: root/pylint/lint/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-291-4/+4
|
* [crash template] Link to blank issue so it's possible to copy pastePierre Sassoulas2023-03-291-4/+28
|
* [crash template] Add <details> tag and current headers for clearer resultPierre Sassoulas2023-03-291-6/+23
| | | | refs #8509
* Remove deprecated functions and classes (#8409)Daniël van Noord2023-03-091-37/+0
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Remove all old code related to ``optparse`` config parsing. (#8405)Daniël van Noord2023-03-081-1/+1
| | | | | * Remove all old config parsing code * Temporarily disable a test
* Support Implicit Namespace Packages (PEP 420) (#8153)Alexey Pelykh2023-02-091-7/+36
| | | Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com>
* Print this error the stderr instead of stdout. (#8142)Yilei "Dolee" Yang2023-01-311-1/+2
|
* Store namespaces respective to directories (#6789)Daniël van Noord2022-06-041-0/+13
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Revert "Do not append namespace packages to sys.path (#6405)" (#6548)Pierre Sassoulas2022-05-091-19/+0
| | | This reverts commit 603be8408a5d2d98283f41cfd9a94998fd7cfd3c.
* Do not append namespace packages to sys.path (#6405)Daniël van Noord2022-05-021-0/+19
| | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Add some typing to ``pylint/lint`` (#6376)Daniël van Noord2022-04-181-2/+5
|
* Move preprocessing of arguments into ``config`` directoryDaniël van Noord2022-04-041-39/+0
|
* Better error message when we cant write the crash files (#5987)Pierre Sassoulas2022-03-271-4/+7
| | | * Display the error correctly if we can't write a crash report. Also catch any exceptions.
* 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-1/+1
|
* Fix typos accross the whole codebase (#5575)Pierre Sassoulas2021-12-211-2/+2
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* 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