Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

force_absolute_imports-0.11.0.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file force_absolute_imports-0.11.0.tar.gz.

File metadata

  • Download URL: force_absolute_imports-0.11.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for force_absolute_imports-0.11.0.tar.gz
Algorithm Hash digest
SHA256 306770e66480a4809e2419377f33037266097fc47da0c342c0999ad0bc2728f7
MD5 de9586a4fd9780ff1e4ceadd7ba17510
BLAKE2b-256 2b6dcc2136d395ec687858b6c9be6cafc8b2350046030debe59ce3df0ead1d1c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.11.0 This release

1 file

0.10.0

1 file

0.9

1 file

0.8

1 file

0.7

1 file

0.6

1 file

0.5

1 file

0.4

1 file

0.2

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page