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.

Source Distribution

baked-0.1.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file baked-0.1.tar.gz.

File metadata

  • Download URL: baked-0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for baked-0.1.tar.gz
Algorithm Hash digest
SHA256 98383b8d269cd444c0d086bbfec215be96e0b76898964001fa7b7aa65dd9c06e
MD5 6b92fb88fdf563b72364311db870c2c3
BLAKE2b-256 89328c7915f4d104c1a5e1654493c932851ffce07afd22a7a6f6e2fb93d80911

See more details on using hashes here.

Supported by

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