flake8-absolute-import 1.0.0.2
pip install flake8-absolute-import
Released:
flake8 plugin to require absolute imports
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: OSI Approved, MIT License (MIT License)
- Author: Brian Skinn
- Tags flake8-plugin, linting, absolute-imports, relative-imports
- Requires: Python >=3.6
Classifiers
- Development Status
- Framework
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Topic
Project description
flake8 plugin to require absolute imports
Current Development Version:
Most Recent Stable Release:
Info:
Don’t like relative imports?
Lint ‘em out!
flake8-absolute-import uses a direct check of the AST for each from x import y statement to flag relative imports. Specifically, it checks for a nonzero level attribute on each ImportFrom node.
Relative imports raise the ABS101 error code:
from foo import bar # OK
from .foo import bar # ABS101
Available on PyPI (pip install flake8-absolute-import). flake8 should automatically detect and load the plugin. flake8>=5.0 is required.
Source on GitHub. Bug reports and feature requests are welcomed at the Issues page there.
Copyright (c) Brian Skinn 2019-2023
The flake8-absolute-import documentation (including docstrings and README) is licensed under a Creative Commons Attribution 4.0 International License (CC-BY). The flake8-absolute-import codebase is released under the MIT License. See LICENSE.txt for full license terms.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: OSI Approved, MIT License (MIT License)
- Author: Brian Skinn
- Tags flake8-plugin, linting, absolute-imports, relative-imports
- Requires: Python >=3.6
Classifiers
- Development Status
- Framework
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file flake8-absolute-import-1.0.0.2.tar.gz
.
File metadata
- Download URL: flake8-absolute-import-1.0.0.2.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcb734ac5a9639fa4ffbc6242ae9d6e9d8063f9cd078d6d218597ee883a99d48 |
|
MD5 | d91e297ab38c91729c347449e804274a |
|
BLAKE2b-256 | a07409a11a10123d646bdcddb2002383a3c06e02a2e424e4c928bb8988ab7ccd |
File details
Details for the file flake8_absolute_import-1.0.0.2-py3-none-any.whl
.
File metadata
- Download URL: flake8_absolute_import-1.0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b72142db999ec5e0ac4f4ac57fb8776a2959d07346c4d3742c446f206d45fcef |
|
MD5 | c1f1ccd42c63a792e0f79d6652e58404 |
|
BLAKE2b-256 | ce54328f839ed7f805d7298560ca194908e96c512c427eefee4ee9494af2ef3f |