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.0.0.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 936ae8f62b230ba4f6223de2375a4f7b9b2209f27ca15feeecd252b648caeb93 |
|
MD5 | 48a9fa9e675a96ba716366c977acd484 |
|
BLAKE2b-256 | 76740e7234874f2d85daea085983a1d3bd3b24a07ec097f370d862a34a5e8add |
Close
Hashes for pylint_module_boundaries-1.0.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3b1d2356a227d3eb2c9015054f77889fed046426d5b75bfebdbeb5fe051ed21 |
|
MD5 | 60c00f21b6ae1b7766593df48dc13589 |
|
BLAKE2b-256 | 86906449ccdd692075e83633620abbf5814681ac40995ca0678265e12ca181a3 |