tiny tool to force absolute imports in python code
Project description
force_absolute_imports
simple tool that checks only absolute imports are used
# install
python -m pip install force_absolute_imports
# usage
python -m force_absolute_imports foo.py bar.py python_folder
Pass python files and/or folders. Folders will be recursively scanned for .py
files
You can pass --in-place
parameter to fix imports. (it will edit files in place):
python -m force_absolute_imports --in-place foo.py bar.py python_folder
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for force_absolute_imports-0.10.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad296a230a51fdc050196987d2764ce8182bdac264a884c5f0559f62fc1e9fdf |
|
MD5 | ab070fadeeb0dc7516969269d88f1a1f |
|
BLAKE2b-256 | 9c7a40305a47fa8548a676d5633f0da0abd5861ad78e2e86bc96007e83f6ff89 |