Skip to main content

Import order detection

Project description

A script to detect that the import order matches Mozilla WebDev Python guidelines. Usage:

baked.py [filename] [filename..]

Filename can be a glob. Or multiple filenames. For example:

baked.py apps/*.py mkt/*.py

Loads a confg file as JSON. For an example see: https://gist.github.com/andymckay/5507339

The config file contains:

:param order: the list of orders of import "blocks"
:param fallback: what imports will be classified as if not defined
:param from_order: mapping of sections to enforce "from", "import" order
:param modules: mapping of import classifications

Project details


Download files

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

Files for baked, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size baked-0.1.1.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page