summaryrefslogtreecommitdiff
path: root/pylint/utils
Commit message (Collapse)AuthorAgeFilesLines
* [pre-commit.ci] pre-commit autoupdate and simplify ruff config (#8694)pre-commit-ci[bot]2023-05-161-1/+1
| | | | | | | | | | * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.265 → v0.0.267](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.265...v0.0.267) - [github.com/pre-commit/mirrors-mypy: v1.2.0 → v1.3.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.2.0...v1.3.0) --------- Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Drop support for Python 3.7 (#8609)Marc Mueller2023-04-243-20/+13
| | | | | * 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-297-14/+14
|
* [deprecation] Make '_format-option-value' private and update TODOs (#8469)Pierre Sassoulas2023-03-202-3/+1
|
* Remove deprecated functions and classes (#8409)Daniël van Noord2023-03-092-85/+1
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [FileState] Remove 'collect_block_lines'Pierre Sassoulas2023-03-081-20/+0
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* [FileState] Make Pylinter.current_name and msg_store non nullablePierre Sassoulas2023-03-081-20/+2
|
* Remove all old code related to ``optparse`` config parsing. (#8405)Daniël van Noord2023-03-081-22/+15
| | | | | * Remove all old config parsing code * Temporarily disable a test
* Add ``invalid-name`` check for ``TypeAlias`` names (#7116)Daniël van Noord2023-02-261-0/+7
|
* Tighten design constraints (#8115)Nick Drozd2023-01-281-0/+1
| | | | | | | | | | | | | * Lower max locals * Lower max statements * Lower max try statements * Lower max branches * Lower max args * Cut design constraints with default values
* Bump mypy from 0.982 to 0.990 (#7769)dependabot[bot]2022-11-141-1/+1
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* [refactor] Use typed NamedTuple for Confidence + PragmaRepresenter (#7718)Pierre Sassoulas2022-11-051-2/+4
| | | | | The init needs to analyse a string with the old way of doing things, which is not the best in term of performance. We also have the benefit of being able to add typing with the new way of doing it.
* Use stacklevel=2 in warnings.warn calls to DeprecationWarning where makes ↵Yilei "Dolee" Yang2022-09-152-0/+6
| | | | | | | | 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-092-3/+3
| | | | | | | | | | * Ignore subclasses of Any * Add ignores for imported code and remove casts * Add disables for uninferable return values * Turn on ``mypy`` strict mode
* Make ``disable-next`` only consider the succeeding line (#7411)Daniël van Noord2022-09-051-15/+35
|
* Remove redundant options documentation and improve formatting (#6665)Daniël van Noord2022-06-061-5/+15
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [refactor] Create a function to get the main checker documentationPierre Sassoulas2022-05-241-15/+19
|
* [doc] Remove trailing line feeds in generated RSTsPierre Sassoulas2022-05-241-1/+1
|
* Some initial line wrapping of docstrings (#6672)Daniël van Noord2022-05-233-5/+15
|
* Write the exception message to stderr in `ASTWalker.walk` (#6598)Yilei "Dolee" Yang2022-05-121-1/+5
|
* Use main instead of master as main checker name (#6569)Daniël van Noord2022-05-101-1/+1
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Make sure that --generate-rcfile generates a valid file (#6566)Daniël van Noord2022-05-101-1/+6
|
* Fix disabling of ``bad-option-value`` (#6556)Daniël van Noord2022-05-091-12/+70
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Refactor ``_collect_block_lines`` (#6560)Daniël van Noord2022-05-091-31/+40
|
* Pass ``msg_store`` and ``node`` to ``FileState`` (#6558)Daniël van Noord2022-05-091-2/+29
|
* Refactor of ``config.__init__.py``Daniël van Noord2022-05-051-0/+3
|
* Move AstCallback (#6502)Marc Mueller2022-05-051-9/+16
|
* Run development version of ``pydocstringformatter`` (#6469)Daniël van Noord2022-04-283-4/+4
|
* [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 typing to methods of ``PyLinter``Daniël van Noord2022-04-181-2/+3
|
* Add last typing to ``pylint/utils`` (#6369)Daniël van Noord2022-04-183-12/+21
|
* 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-143-14/+7
| | | 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-145-71/+71
|
* Remove last use of ``config`` in ``PyLinter``Daniël van Noord2022-04-121-0/+9
|
* Deprecate most methods of ``_ArgumentsProvider``Daniël van Noord2022-04-121-14/+21
|
* 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
|
* Create a ``TypeVar`` style for ``invalid-name`` (#5894)Daniël van Noord2022-03-241-0/+7
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add a pre-commit hook to check the copyright noticePierre Sassoulas2022-03-247-8/+8
| | | | | 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-247-39/+7
| | | | | | 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.
* Optimize handling of long lines for checkers like 'missing-final-newline' ↵Sergey B Kirpichev2022-03-161-11/+12
| | | | | | | | | | | | | | (#5925) * Fix parsing of long lines when ``missing-final-newline`` is enabled * Adapt fa31b6b6 to be backward-compatible Fixes #5724 Also address comments from the PR PyCQA/pylint#5786 Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>