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
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
baked-0.1.1.tar.gz
(2.6 kB
view details)
File details
Details for the file baked-0.1.1.tar.gz
.
File metadata
- Download URL: baked-0.1.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
8dad9c26c6926211d34dfbf7300d27895cb6637f8d1c720021a3038662b2c9c0
|
|
MD5 |
ba2002495c5b2ac5ff9dec708574f7d5
|
|
BLAKE2b-256 |
288d5b177349618b4a6d18b298ec0239e9eaa806ce043c07381e831e662957e4
|