Skip to contents

Matches directories containing at least one Python package directory at the root level, identified by the presence of an __init__.py file one level down. This is the older conventional layout where the package directory sits directly at the project root.

Usage

is_flat_layout

Format

An object of class root_criterion of length 5.

Details

Note: namespace packages (PEP 420) do not use __init__.py and will not be detected by this criterion.