checks.imports.ImportsCheck
checks.imports.ImportsCheck()Deprecated alias that points at the dependencies check.
The check looks at nothing and is always skipped. It is left out of every profile and of a run that names no check, so it only runs when it is asked for by name. It will be removed in a later release.
Attributes
name :-
The check identifier (“imports”).
description :-
Human-readable description of this check.
Examples
>>> from pathlib import Path
>>> result = ImportsCheck().run(Path("."), {})
>>> result.status.value, result.skip_reason
('skipped', 'deprecated')Methods
| Name | Description |
|---|---|
| run | Say that the check was merged into the dependencies check. |
run
checks.imports.ImportsCheck.run(package_path, config)Say that the check was merged into the dependencies check.
Parameters
Returns
: CheckResult-
A SKIPPED CheckResult with the skip reason “deprecated”.