Skip to main content

flake8-import-as-module

PyPI

A Flake8 plugin to check if specific packages are imported as modules.

Installation

Via Pipenv:

pipenv install --dev flake8 flake8-import-as-module

Flake8 codes

Package Code Description
Altair IM001 from altair import ... is unconventional. altair should be imported as a module.
pandas IM002 from pandas import ... is unconventional. pandas should be imported as a module.

References

Development

poetry install --with dev
poetry shell
pytest tests/ -v

Copy the output of the following script and paste it in the Flake8 codes section:

python gen_table.py

If changes are not reflected in VS Code after changing something in the package, close it and open it again.

Deployment

poetry check
poetry version minor

or

poetry version patch

Commit the change in the pyproject.toml file.

git tag
git tag "v$(poetry version --short)"
git push origin "v$(poetry version --short)"

Metadata

Release files for flake8-import-as-module 0.1.0

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

Source distribution (sdist)

Source distribution for flake8-import-as-module 0.1.0
File Size Uploaded
flake8_import_as_module-0.1.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flake8-import-as-module 0.1.0
File Interpreter ABI Platform
flake8_import_as_module-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / flake8_import_as_module-0.1.0.tar.gz

Download URL flake8_import_as_module-0.1.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9b2b0a19f0ba7b83b7b7cf184cdf95816478670e40439241557d1b7f8de8e007
BLAKE2b-256 checksum
How to use checksums
04633eb3bdbe1f1f16ca3b81ac31bdd4d178572714112065522a3fdb6ed8d341
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.7.15 Linux/5.15.0-1031-azure

Release files / flake8_import_as_module-0.1.0-py3-none-any.whl

Download URL flake8_import_as_module-0.1.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99a49785dfc0752608e64fb26df68fa58d18b05874c10daaa9df2f71f1b30d30
BLAKE2b-256 checksum
How to use checksums
48befdee445206c6639c8ca41259726e67c39fe8f75f4fbb598b550306ac7fb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.7.15 Linux/5.15.0-1031-azure

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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