No project description provided
Project description
pylint module boundaries
a pylint plugin to enforce boundaries between modules in your project. similar to nx's enforce-module-boundaries eslint plugin
example
say you have three packages in your project - common
, package1
, and package2
- you can use the banned-imports
rule to prevent common
from importing anything from package1
or package2
, thus avoiding issues such as circular dependencies.
Pylint can then be used to detect any violations of this rule:
see usage below for a config example
installing
poetry install pylint-module-boundaries
usage
# pyproject.toml
[tool.pylint.MASTER]
load-plugins = "pylint_module_boundaries"
# (currently uses regex but i want to replace it with something better in the future)
banned-imports = '''
{
"common(\\..*)?": ["package1(\\..*)?", "package2(\\..*)?"],
"scripts(\\..*)?": ["package1(\\..*)?", "package2(\\..*)?"]
}
'''
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 pylint_module_boundaries-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83467dc233bc7b2aa1da89e5e4c0a2c5603d2f0882a75809510a6b542acee7a2 |
|
MD5 | 3991ec2e0031006016dae9c9925fab45 |
|
BLAKE2b-256 | 836e7e6d8e7209d45d259c9c6e8d04e0912c7361df9417298f744bbffc426729 |
Close
Hashes for pylint_module_boundaries-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c61e70f201a60a873d883da89fa12606071a8991b247bc6dd6f71d371989977e |
|
MD5 | 65b7235b5e7d78b0864aa3ac8b5be294 |
|
BLAKE2b-256 | 88bb641ebbc7e47c339a536159ed09a149711936aa8ad1d36f57468638251812 |