exasol / python-toolbox

Infrastructure & Automation Tooling for Python Projects
https://exasol.github.io/python-toolbox/
MIT License
2 stars 0 forks source link

✨ Add support for `import-linter` to `lint` tasks #149

Open Nicoretti opened 6 months ago

Nicoretti commented 6 months ago

Summary

Integrate the import-linter tool to enforce "contracts" between modules, specifying allowable imports. This enhancement ensures clear, predefined module relationships, benefiting project maintainers and contributors by preventing import loops and improving code structure.

Details

The integration will enable conditional import linting, activating only when a relevant configuration exists within the project. This feature aims to enhance code quality and maintainability by enforcing module interaction rules.

Background & Context

import-linter provides a framework for defining and enforcing module relationships, important for complex projects or those with contributors lacking complete architectural knowledge. It helps maintain clear module interactions, supporting project structure and guiding contributors.

References