astral-sh/ruff · Architecture
A static read of how astral-sh/ruff is wired together — module coupling, layering, and circular dependencies — derived from its import graph.
B
Architecture grade
score 83/100
0
Import cycles
lower is better
348
Modules parsed
206 edges
100%
Layeredness
clean-layer ratio
Most-depended-on modules
These are the highest-fan-in files — change them and the blast radius is largest. Read them first.
- crates/ruff_benchmark/benches/ty_shared/mod.rs2 importers · radius 2
- crates/ruff_benchmark/resources/tomllib/_types.py2 importers · radius 3
- crates/ruff_linter/src/checkers/ast/analyze/mod.rs1 importers · radius 1
- crates/ruff_formatter/src/printer/mod.rs1 importers · radius 1
- crates/ruff_annotate_snippets/src/renderer/mod.rs1 importers · radius 1
- crates/ruff_benchmark/resources/tomllib/_parser.py1 importers · radius 1
- crates/ruff_db/src/diagnostic/mod.rs1 importers · radius 1
- crates/ruff_linter/src/message/mod.rs1 importers · radius 1
Modules (24)
Source directories grouped from the import graph. Each links to a per-module page with its files and how it couples to the rest.
- crates/ruff_annotate_snippets/tests/color28 files · 28 in-degree
- crates/ruff_linter/src/checkers/ast/analyze19 files · 19 in-degree
- crates/ruff_dev/src17 files · 17 in-degree
- crates/ruff_linter/src16 files · 16 in-degree
- crates/ruff_linter/src/rules/airflow/rules13 files · 13 in-degree
- crates/ruff_linter/src/rules/flake8_async/rules13 files · 13 in-degree
- crates/ruff_formatter/src11 files · 11 in-degree
- crates/ruff_db/src10 files · 10 in-degree
- crates/ruff/src7 files · 7 in-degree
- crates/ruff_formatter/src/printer5 files · 5 in-degree
- crates/ruff/tests/cli5 files · 5 in-degree
- crates/mdtest/src4 files · 4 in-degree
- crates/ruff_graph/src4 files · 4 in-degree
- crates/ruff_index/src4 files · 4 in-degree
- crates/ruff_benchmark/resources/tomllib3 files · 4 in-degree
- crates/ruff_annotate_snippets/src/renderer3 files · 3 in-degree
- crates/ruff_db/src/diagnostic3 files · 3 in-degree
- crates/ruff_linter/src/message3 files · 3 in-degree
- crates/ruff_cache/src3 files · 3 in-degree
- crates/ruff_diagnostics/src3 files · 3 in-degree
- crates/ruff_linter/src/rules/fastapi/rules3 files · 3 in-degree
- crates/ruff_linter/src/rules/flake8_2020/rules3 files · 3 in-degree
- crates/ruff_annotate_snippets/src2 files · 2 in-degree
- crates/ruff_benchmark/src2 files · 2 in-degree
Ask AI about astral-sh/ruff
Grounded in the actual source code. Pick a starter question or write your own.
What does this repo do, in one paragraph?How would I get started using it?What are the main alternatives?Show me the entry point.
Or write your own questionInformational only. RepoPilot summarises public signals at the time of analysis; they can be incomplete or stale. Not professional, security, or legal advice.