# seddonym/import-linter

Lint your Python architecture.

Repository: https://github.com/seddonym/import-linter
Canonical: https://ross.abutalabs.com/products/import-linter
Homepage: https://import-linter.readthedocs.io/
Language: Python
License: BSD-2-Clause
License Family: permissive
Topics: linter, python, imports, dependencies
Last push: 2026-08-24T09:32:45+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 2775, "days_push": 9, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1148, forks 87 (observed 2026-08-28T04:03:46.152285+00:00)

## What it is
Import Linter is a command-line tool that checks and enforces constraints on imports between Python modules, helping teams maintain clean architectural boundaries. It also includes a browser-based UI for exploring a package's architecture.

## Use cases
- enforce layered architecture rules in a python codebase
- prevent circular imports between modules
- lint python package dependencies between modules
- visualize the import graph of a python package
- forbid imports from higher layers to lower layers
- check that contracts between packages are respected in CI

## When to choose
- you want to codify and enforce architectural rules for a Python codebase
- you need CI checks that fail when forbidden imports are introduced
- you want to explore or document module dependency structure

## When to avoid
- you need general-purpose style linting (use ruff or flake8)
- your project is not written in Python
- you need runtime dependency analysis rather than static import checking

## Facets
- artifact type: cli-tool
- maturity: active
- function: linter, static-site-generator
- domain: developer-tools
- platform: cli, python, cross-platform
- tags: import-linting, architecture-constraints, dependency-rules, code-quality, architecture, python

## Member repositories
- seddonym/import-linter (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:46.152285+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:33:51.968996+00:00, confidence not recorded.
  - readme: https://github.com/seddonym/import-linter (fetched 2026-08-28T04:03:46.152285+00:00, sha 036bb7ba614a)
  - registry_pypi: https://pypi.org/pypi/import-linter/json (fetched 2026-08-29T12:39:36.679549+00:00, sha 1ad5e2080ba5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
