summaryrefslogtreecommitdiff
path: root/pylint/lint/expand_modules.py
Commit message (Collapse)AuthorAgeFilesLines
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-291-2/+2
|
* [ruff] Add RUF specific rules and autofix (#8449)Pierre Sassoulas2023-03-141-1/+1
|
* Remove deprecated functions and classes (#8409)Daniƫl van Noord2023-03-091-13/+0
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Support Implicit Namespace Packages (PEP 420) (#8153)Alexey Pelykh2023-02-091-7/+26
| | | Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com>
* 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
* Deduplicate module file paths to prevent redundant scans. (#7747)Eric McDonald2022-11-181-14/+16
| | | | | | | | | | | | | | | * Use dict for 'expand_modules' result rather than list. With 'path' as the key, we get deduplication for free and do not need to reprocess the list for deduplication later. * Fix deduplication to account for CLI args marker. * Fix corner case with CLI arg flag handling during deduplication. * Add 'deduplication' to custom Pyenchant dict. Closes #6242 Closes #4053 Co-authored-by: Eric McDonald <emcd@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Turn on ``mypy`` strict mode šŸŽ‰ (#7448)DaniĆ«l van Noord2022-09-091-1/+1
| | | | | | | | | | * Ignore subclasses of Any * Add ignores for imported code and remove casts * Add disables for uninferable return values * Turn on ``mypy`` strict mode
* Revert "Fix the failure to lint modules contained under an identically named ↵Jacob Walls2022-08-131-4/+2
| | | | | | | | | directory" (#7304) This reverts commit 3ebb700aed88a427011c2e88705f66ec0b3830a4. * Add regression test for namespace packages under directory on path * Fix expected result in `test_relative_beyond_top_level_two`
* Remove imp-specific workaroundJacob Walls2022-08-031-3/+1
|
* Fix the failure to lint modules contained under an identically named directoryJacob Walls2022-08-031-2/+4
|
* Normalize path before checking if path should be ignored (#7080)Matus Valo2022-06-281-0/+1
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Respect ignore configuration options when --recursive=y. (#6528)Matus Valo2022-05-131-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Ignore specified files/directories in recursive mode * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update Changelog * Fix typo in Changelog * Fix typo in comment * Add missing regrtest data directory * Improved unittests * Move common code of checking if file is ignored to separate function * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Rename is_ignored_file to _is_ignored_file Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update ChangeLog 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: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>
* Run development version of ``pydocstringformatter`` (#6469)Daniƫl van Noord2022-04-281-2/+2
|
* Add typing to methods of ``PyLinter`` and related functionsDaniƫl van Noord2022-04-211-1/+2
|
* Add some typing to ``pylint/lint`` (#6376)Daniƫl van Noord2022-04-181-4/+4
|
* Use ``--py39-plus`` and ``--full-reorder`` in ``python-typing-update`` (#6313)Daniƫl van Noord2022-04-141-1/+1
|
* Use ``python-typing-update`` on ``pylint/lint`` directoryDaniƫl van Noord2022-04-141-9/+11
|
* Add a pre-commit hook to check the copyright noticePierre Sassoulas2022-03-241-0/+4
| | | | | Fix the existing file so they have a notice. No header for setup.py or examples or doc
* Upgrade ``pydocstringformatter`` to ``0.5.0`` (#5910)Daniƫl van Noord2022-03-131-1/+3
|
* Update ``pydocstringformatter`` to 0.4.0 (#5787)Daniƫl van Noord2022-02-101-2/+2
|
* Format docstrings with ``pydocstringformatter``Daniƫl van Noord2022-01-021-1/+2
|
* Ignore files with name that starts like an emacs lock files (#5554)Pierre Sassoulas2021-12-201-2/+2
| | | | | | | | | | * Fix 'path' shadowing variable from outer scope * Ignore file that starts like emacs's file lock Closes #367 Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>
* Enable for_any_all check (#5206)Nick Drozd2021-10-251-4/+1
| | | | | | | * Enable for_any_all check, reword a few docstrings, shorten some loop variable names, and add typing on modified functions. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>
* Normalize input of ``ignore-paths`` for all path types (#5201)Daniƫl van Noord2021-10-241-1/+1
| | | | | Closes #5194 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add typing to ``filepath`` (#4980)Daniƫl van Noord2021-09-161-3/+5
| | | | | | | | | | * 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 `ignore-paths` to match against the full path. (#4516)Fabian Damken2021-05-271-18/+21
| | | | | | | | | | | | * Add ``ignore-paths`` configuration directive List of regex matching against the full path Close #2541 * Adjusted previous changes for current pylint version. Co-authored-by: Bernard Nauwelaerts <bernard@cybernet.be> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix some LGMT errors - unreachable-statementMarc Mueller2021-04-071-1/+0
|
* Add comment on get_python_pathPierre Sassoulas2021-04-031-0/+2
|
* Factorize checks in expand_modulesPierre Sassoulas2021-04-031-5/+5
|
* Format docstring of expand_modulesPierre Sassoulas2021-04-031-9/+2
|
* Move utils.expand_module in its own file in lintPierre Sassoulas2021-04-031-0/+143
We never used it anywhere else than lint so it belong in lint.