no-cyclic-imports

Tool to detect and report on cyclic imports in a Python codebase


Keywords
automation, lint, linter, ci, circular-imports, command-line-tool, continuous-integration, cyclic-imports, imports-analysis, linting, python, python3
License
Other
Install
pip install no-cyclic-imports==2.0.0

Documentation

no-cyclic-imports

pre-commit Run the test suite PyPI - Version PyPI - Python Version

Tool to detect and report on cyclic imports in a Python codebase

$ no-cyclic-imports --no-follow cyclic/
package123 -> package123.a -> package123.b -> package123

1 cycle(s).

Table of Contents

Installation

$ pip3 install no-cyclic-imports
$ pipx install no-cyclic-imports

License

no-cyclic-imports is distributed under the terms of the Affero GPL v3 or later license.