Skip to content

Optional list of imports on acyclic_siblings rendering #326

Description

@K4liber

Using the acyclic_siblings contract I get the following log:

----------------
Broken contracts
----------------

AcyclicDependencies
-------------------

No cycles are allowed in definit_db.data.field.mathematics.definitions.
It could be made acyclic by removing 2 dependencies:

- .number -> .fundamental (1 import)
- .problem -> .algorithm (3 imports)

How about the additional contract option called "list_imports" with a default value "false"? If "true", just below each package dependency, it will print the imports responsible for the dependency. In this case:

- .number -> .fundamental (1 import)
  definit_db.data.field.mathematics.definitions.number.integer -> definit_db.data.field.mathematics.definitions.fundamental.object
- .problem -> .algorithm (2 imports)
  definit_db.data.field.mathematics.definitions.problem.optimization -> definit_db.data.field.mathematics.definitions.algorithm.objective
  definit_db.data.field.mathematics.definitions.problem.linear_programming -> definit_db.data.field.mathematics.definitions.algorithm.objective

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions