No project description provided
Project description
Helps to prevent import of certain modules from certain modules.
It's useful if you have many modules in your project and want to keep them kind of isolated.
After installing just add import-rules
option to your setup.cfg
file.
[flake8]
...
import-rules=
# yaml format here
module_one:
- allow module_two
- deny any
module_two:
- deny module_one.sub.submodule
module_two.sumbodule:
- deny module_one
module_three: allow any
# this will prevent any import everywhere
any:
- deny any
# default behaviour is
any:
- allow any
...
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
Built Distribution
Close
Hashes for flake8_import_rules-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1bfe27f48b463f6102c30942d871c9723d2896c96ad1a5de63894e1b8556fd7 |
|
MD5 | a3b0307a884733bc0b80e81f551f4386 |
|
BLAKE2b-256 | ea5ab0129de55e36b78d1d313980f45f44385fd0ba0de4307a42d2409b302df8 |
Close
Hashes for flake8_import_rules-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04211a137c3680052fb8afec798bdba82aba9f5684baff466e2c198ad3124342 |
|
MD5 | faca8c65ee5db719a67375f7315d72a6 |
|
BLAKE2b-256 | 78151839bc4c5be2c6a9abadf5c00d9b04db31da74087e24db23463857d4c5b1 |