---
title: "Enforce architectural import boundaries in Python codebases with Import Linter"
description: "Check whether a Python codebase still respects declared layered, independence, or forbidden import contracts."
verification: "listed"
source: "https://github.com/seddonym/import-linter"
author: "seddonym"
publisher_type: "individual"
category:
  - "Code Quality & Review"
framework:
  - "Multi-Framework"
tool_ecosystem:
  github_repo: "seddonym/import-linter"
  github_stars: 995
---

# Enforce architectural import boundaries in Python codebases with Import Linter

Check whether a Python codebase still respects declared layered, independence, or forbidden import contracts.

## Prerequisites

Python project, pip or Poetry environment

## Installation

Choose whichever fits your setup:

1. Copy this skill folder into your local skills directory.
2. Clone the repo and symlink or copy the skill into your agent workspace.
3. Add the repo as a git submodule if you manage shared skills centrally.
4. Install it through your internal provisioning or packaging workflow.
5. Download the folder directly from GitHub and place it in your skills collection.

Install command or upstream instructions:

```
Install with `pip install import-linter`, add contracts in your configuration file, then run `lint-imports` in CI or local review workflows.
```

## Documentation

- https://import-linter.readthedocs.io/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/enforce-architectural-import-boundaries-in-python-codebases-with-import-linter/)
