summaryrefslogtreecommitdiff
path: root/pylint/utils/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Drop support for Python 3.7 (#8609)Marc Mueller2023-04-241-6/+11
| | | | | * 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
|
* [deprecation] Make '_format-option-value' private and update TODOs (#8469)Pierre Sassoulas2023-03-201-1/+1
|
* Remove deprecated functions and classes (#8409)Daniël van Noord2023-03-091-83/+1
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Use stacklevel=2 in warnings.warn calls to DeprecationWarning where makes ↵Yilei "Dolee" Yang2022-09-151-0/+3
| | | | | | | | sense. (#7465) Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add ``tomlkit`` and ``isort`` to ``mypy`` additional dependencies (#7450)Daniël van Noord2022-09-101-3/+4
|
* Turn on ``mypy`` strict mode 🎉 (#7448)Daniël van Noord2022-09-091-2/+2
| | | | | | | | | | * Ignore subclasses of Any * Add ignores for imported code and remove casts * Add disables for uninferable return values * Turn on ``mypy`` strict mode
* Some initial line wrapping of docstrings (#6672)Daniël van Noord2022-05-231-1/+3
|
* Make sure that --generate-rcfile generates a valid file (#6566)Daniël van Noord2022-05-101-1/+6
|
* Run development version of ``pydocstringformatter`` (#6469)Daniël van Noord2022-04-281-2/+2
|
* [spelling] Capitalize emacs where it makes sensePierre Sassoulas2022-04-261-1/+1
|
* Remove explicit default values from overloads (#6447)Daniël van Noord2022-04-251-6/+6
|
* Add remaining typing to ``pylint/utils``Daniël van Noord2022-04-171-10/+33
|
* Deprecate ``get_global_option``Daniël van Noord2022-04-151-23/+8
|
* Add some manual typing changes (#6325)Daniël van Noord2022-04-141-11/+2
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add classifications to TODOs across codebaseDaniël van Noord2022-04-141-1/+1
|
* Replace .namespace with .config (#6316)Daniël van Noord2022-04-141-1/+1
|
* Use ``python-typing-update`` on ``pylint/utils`` and ``message`` dirsDaniël van Noord2022-04-141-27/+28
|
* Remove last use of ``config`` in ``PyLinter``Daniël van Noord2022-04-121-0/+9
|
* Deprecate ``generate_config`` (#6222)Daniël van Noord2022-04-071-2/+16
|
* Deprecate ``ignore-mixin-members`` + add ``ignored-checks-for-mixins``Daniël van Noord2022-04-041-1/+0
|
* Use the ``argparse`` config handler in ``imports.py``Daniël van Noord2022-04-021-1/+2
|
* Add typing to two utility functions (#6111)Daniël van Noord2022-04-021-2/+3
|
* Add basic typing to ``pylint/utils.py`` (#5977)Daniël van Noord2022-03-251-10/+8
|
* Add a pre-commit hook to check the copyright noticePierre Sassoulas2022-03-241-2/+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.
* Upgrade ``pydocstringformatter`` to ``0.5.0`` (#5910)Daniël van Noord2022-03-131-1/+1
|
* Update ``pydocstringformatter`` to 0.4.0 (#5787)Daniël van Noord2022-02-101-10/+10
|
* Add ``future=True`` to all ``NodeNG.frame`` calls (#5621)Daniël van Noord2022-01-101-2/+2
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix typos accross the whole codebase (#5575)Pierre Sassoulas2021-12-211-4/+4
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Fix typo in pylintrc for useless-suppression (#5303)Daniël van Noord2021-11-231-1/+1
| | | | | | | | | | | * Fix typo in pylintrc for useless-suppression * Fix CI for information messages * Remove useless disables * Update CI and docs for 3.8+ Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add configuration option ``exclude-too-few-public-methods`` (#5191)Mike Fiedler2021-10-261-1/+1
| | | | | | | | | Allow excluding classes based on their ancestors from the ``too-few-public-methods`` checker. Closes #3370 Signed-off-by: Mike Fiedler <miketheman@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add ``mixin-class-rgx`` option (#5203)Daniël van Noord2021-10-251-1/+4
| | | | | Co-authored-by: Alpha <alpha@pokesplash.net> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Normalize input of ``ignore-paths`` for all path types (#5201)Daniël van Noord2021-10-241-1/+18
| | | | | Closes #5194 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Remove calls to ``os.linesep`` and add misc. typingDaniël van Noord2021-10-101-2/+3
|
* Fix empty regex options not converting to regexDaniël van Noord2021-09-291-3/+3
|
* Small py-version improvements (#5069)Marc Mueller2021-09-251-1/+1
| | | | | | | | | * Add py-version requirement to checker docs * Improve default value * Improve option parser error message * Fix py-version help text
* Remove `safe_decode()` and `deprecated_option()` from utils (#5046)Daniël van Noord2021-09-201-28/+0
|
* Add typing to most reference of ``stream``Daniël van Noord2021-09-131-6/+14
|
* Use overload to type get_global_option (#4978)Daniël van Noord2021-09-081-1/+88
| | | | | | * Use ``overload`` to type ``get_global_option`` * Use type alias and TypeVar Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add ``Consider-using-f-string`` checker (#4796)Daniël van Noord2021-08-301-9/+9
| | | | | | | | | | | | | | | | * 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>
* Add extension check against use of while loops (#4860)Nick Drozd2021-08-181-1/+1
| | | | | * Move stray functional tests * Clean up some while loops * Add extension check against use of while loops
* Fix copyright links (#4647)Marc Mueller2021-07-011-1/+1
| | | | * Fix link in license header * Update link to astroid bump_changelog
* Add new extension TypingChecker (#4382)Marc Mueller2021-04-241-1/+3
|
* Rename copying to license and upgrade the setup.cfg (#4338)Pierre Sassoulas2021-04-111-1/+1
|
* Formattinghippo912021-04-091-5/+4
|
* Revert "Refactor - Remove unused and untested code in utils"hippo912021-04-091-0/+18
| | | | This reverts commit 293a7f5e6add850e2f127dd1680a6e43fb1a6949.
* Move utils.expand_module in its own file in lintPierre Sassoulas2021-04-031-139/+0
| | | | We never used it anywhere else than lint so it belong in lint.
* Import astroid with import x or from x import y but not bothPierre Sassoulas2021-03-281-0/+1
| | | | Remove unused imports for astroid
* Reduce 'blacklist' term for ignored filesPeter Kolbus2021-03-091-12/+12
| | | | | | | Replace usage of the term 'blacklist' in the context of ignored files and directories (--ignore and --ignore-patterns), except in cases where backward compatibility is needed. In documentation and help, supplement 'ignore' with 'skip'; in code use the term 'ignore list'.