Skip to main content

How it works?

It marks importing anything but modules/packages as invalid with a message only-importing-modules-is-allowed. This adheres to Google’s Python style guide.

An example:

from functools import partial  # invalid
import functools  # valid
from some_module.some_subomdule import SomeClass  # invalid
from some_module import some_subomdule  # valid

Why?

To not force people to manual check if something we imported is a module or not.

How to use it?

After installing a package just run pylint, appending pylint_google_style_guide_imports_enforcing to your –load-plugins option.

An example:

pylint my_cool_project --load-plugins=pylint_google_style_guide_imports_enforcing

or append it to your pylintrc file:

[MASTER]
load-plugins=pylint_google_style_guide_imports_enforcing

Metadata

Release files for pylint-google-style-guide-imports-enforcing 1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pylint-google-style-guide-imports-enforcing 1.3.1
File Size Uploaded Provenance Actions
pylint_google_style_guide_imports_enforcing-1.3.1.tar.gz 3.6 kB Without provenance Details for pylint_google_style_guide_imports_enforcing-1.3.1.tar.gz

Release files / pylint_google_style_guide_imports_enforcing-1.3.1.tar.gz

Download URL pylint_google_style_guide_imports_enforcing-1.3.1.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e3cbd57037f088a3af0107f3407301c6d07ef88e8871be9e512e850a67ac5291
BLAKE2b-256 checksum
How to use checksums
34e1e517b53167e8824f51a359911c401c340806f9e80ca9c63867681fba7133
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.12.1.2 requests/2.32.3 setuptools/57.4.0 requests-toolbelt/1.0.0 tqdm/4.67.1 CPython/3.10.0

Security for pylint-google-style-guide-imports-enforcing 1.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page