summaryrefslogtreecommitdiff
path: root/pylint/checkers/imports.py
Commit message (Collapse)AuthorAgeFilesLines
* Drop support for Python 3.7 (#8609)Marc Mueller2023-04-241-5/+1
| | | | | * Drop support for Python 3.7 * Update py-version + classifier * Update functional tests
* Handle patterns in ignored-modules when checking for no-name-in-module (#7579)Daniel Mouritzen2023-04-031-17/+5
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Jared Proffitt <jaredproffitt@gmail.com>
* Don't use removed function from ``astroid`` (#8525)Daniël van Noord2023-04-011-5/+11
|
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-291-2/+2
|
* Fix incorrect preferred-modules matchesDaniël van Noord2023-03-211-1/+9
| | | | Co-authored-by: d33bs <dave.bunten@cuanschutz.edu>
* Deprecate redundant type checking guard utils (#8433)Jacob Walls2023-03-121-14/+15
|
* Upgrade to astroid 2.15.0 (#8387)Pierre Sassoulas2023-03-071-1/+1
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add import-based submodule detection for preferred-modules (#8186)Dave Bunten2023-02-081-2/+12
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [crash] Fix crashes on python interpreter < 3.9 (#8163)Pierre Sassoulas2023-02-021-1/+1
| | | | | Closes #8161 Co-authored-by: Marc Schmitzer <marc@solute.de>
* 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
* Add `--allow-reexport-from-package` option (#8124)Marc Mueller2023-01-281-2/+20
|
* Clearer ``reimported`` and new ``shadowed-import`` messages for aliased ↵Dani Alcala2022-11-301-9/+30
| | | | | | | import (#7756) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add additional stdlib deprecations (#7664)Jacob Walls2022-10-231-1/+1
|
* Add deprecated mailcap module (#7466)Dani Alcala2022-09-161-0/+1
|
* Finish typing across the codebaseDaniël van Noord2022-09-091-8/+16
|
* Turn on ``check-untyped-defs`` in ``mypy`` (#7407)Daniël van Noord2022-09-091-16/+21
|
* [syntax-error] Fix a crash when the line and column can't be retrieved (#7097)Pierre Sassoulas2022-07-301-3/+4
| | | Closes #3860
* Partial typing of ``imports.py`` (#6982)Daniël van Noord2022-07-131-33/+75
|
* Update `astroid` to 2.12 (#7153)Jacob Walls2022-07-131-1/+3
| | | | | | | | Prevent `unused-import` for `six.with_metaclass` Update `contributors-txt` to 0.9.0 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add whitespace/punctuation to some message descriptions (#7009)Julthep Nandakwang2022-06-231-8/+8
|
* Add support of sharing message in multiple checkers. Fix DeprecatedChecker ↵Matus Valo2022-06-161-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | example (#6693) * Move message definitions from DeprecatedMixin * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Added typing and fixed unittests * Make DEPRECATED_MSGS and DEPRECATED_IMPORT_MSG class variables to make pylint happy * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Introduce shared messages * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Change Message codes in DeprecatedMixin to W49XX * Make mypy happy * Make pylint happy * Add support for building documentation for shared messages * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Make isort happy * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Circuvent isort * Move shared to extra message options and fix tests * Update deprecation_checker example * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update doc/exts/pylint_messages.py Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> * Update doc/exts/pylint_messages.py Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> * Make messages static class attributes * Keep MessageDefinition backward compatible * Apply suggestions from code review Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Reraise failures in astroid as `AstroidError`Jacob Walls2022-05-301-1/+3
|
* Remove duplicate message definitionsDaniël van Noord2022-05-051-5/+1
|
* Create a path type of argument that automatically expand user/var (#6494)Pierre Sassoulas2022-05-031-3/+3
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Avoid reporting useless-suppression on wrong-import-position (#5219) (#6347)Tim Martin2022-05-031-5/+10
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Run development version of ``pydocstringformatter`` (#6469)Daniël van Noord2022-04-281-4/+4
|
* Add typing to ``BaseChecker`` ``msgs`` and ``reports`` (#6456)Daniël van Noord2022-04-251-1/+2
|
* Add python 3.11 deprecations from stdlib (#6453)Jacob Walls2022-04-251-1/+24
|
* Improve wording on W0402 message (#6387)omarandlorraine2022-04-201-2/+2
| | | | Co-authored-by: Sam M W <smw@alertergroup.co.uk> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Remove ``IAstroidChecker`` from ``__implements__``Daniël van Noord2022-04-191-3/+0
|
* Fix enabling `deprecated-module` after `disable=all` (#6360)Jacob Walls2022-04-181-3/+24
| | | Follow-up to fabc645.
* Remove pointless ``check_messages`` decorators (#6353)Andreas Finkler2022-04-171-4/+0
| | | | | * Remove pointless ``check_messages`` decorators * Restore ``@check_messages`` and reference the new issue
* Deprecate ``get_global_option``Daniël van Noord2022-04-151-2/+2
|
* Replace .namespace with .config (#6316)Daniël van Noord2022-04-141-12/+12
|
* Use ``python-typing-update`` on ``pylint/checkers`` directoryDaniël van Noord2022-04-141-15/+15
|
* Move general options to ``PyLinter`` from individual checkers (#6291)Daniël van Noord2022-04-131-13/+0
|
* Remove the ``future_option_parsing`` keyword (#6253)Daniël van Noord2022-04-111-1/+1
|
* Use the ``argparse`` config handler in ``imports.py``Daniël van Noord2022-04-021-16/+17
|
* Remove the concept of checker priority (#6034)Daniël van Noord2022-04-011-1/+0
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* 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-44/+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
|
* Fix disabling of ``ungrouped-imports`` (#5903)Daniël van Noord2022-03-121-4/+4
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Correct type annotation of ImportsChecker.dependencies_statJacob Walls2022-03-101-1/+1
|
* Removed unused detection of site-packages directory (#5874)Jacob Walls2022-03-081-29/+0
|
* Update ``pydocstringformatter`` to 0.4.0 (#5787)Daniël van Noord2022-02-101-23/+23
|
* [pre-commit.ci] pre-commit autoupdate (#5758)pre-commit-ci[bot]2022-02-011-1/+1
| | | | | | | | | | | | | * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 21.12b0 → 22.1.0](https://github.com/psf/black/compare/21.12b0...22.1.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci 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>
* Fix false positive ``super-init-not-called`` for inherited ``init`` (#5698)Daniël van Noord2022-01-241-3/+1
| | | And remove useless suppressed messages
* Add ``future=True`` to all ``NodeNG.frame`` calls (#5621)Daniël van Noord2022-01-101-1/+1
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add typing and uniformize the checker registering in Pylinter (#5558)Pierre Sassoulas2021-12-271-5/+6
| | | | | Remove verbose docstring in code, keep them in example and doc Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>