ruff/docs
Charlie Marsh 4e935f7d7d
Add a subcommand to generate dependency graphs (#13402)
## Summary

This PR adds an experimental Ruff subcommand to generate dependency
graphs based on module resolution.

A few highlights:

- You can generate either dependency or dependent graphs via the
`--direction` command-line argument.
- Like Pants, we also provide an option to identify imports from string
literals (`--detect-string-imports`).
- Users can also provide additional dependency data via the
`include-dependencies` key under `[tool.ruff.import-map]`. This map uses
file paths as keys, and lists of strings as values. Those strings can be
file paths or globs.

The dependency resolution uses the red-knot module resolver which is
intended to be fully spec compliant, so it's also a chance to expose the
module resolver in a real-world setting.

The CLI is, e.g., `ruff graph build ../autobot`, which will output a
JSON map from file to files it depends on for the `autobot` project.
2024-09-19 21:06:32 -04:00
..
.overrides Use | for page separator in meta titles (#13221) 2024-09-03 00:46:15 +00:00
assets Point docs to Astral favicon (#13219) 2024-09-02 20:11:39 -04:00
editors Fix documentation for editor vim plugin ALE (#13348) 2024-09-13 23:27:17 +05:30
formatter Fix tuple expansion example in formatter compatibility document (#13313) 2024-09-10 17:47:12 +00:00
js Improvements to documentation (#12712) 2024-08-12 07:17:32 +00:00
stylesheets Improvements to documentation (#12712) 2024-08-12 07:17:32 +00:00
.gitignore Add docs for Ruff language server (#12344) 2024-07-18 17:41:43 +05:30
configuration.md Add a subcommand to generate dependency graphs (#13402) 2024-09-19 21:06:32 -04:00
faq.md Update faq.md to highlight changes to src (#13145) 2024-08-29 11:57:53 +00:00
formatter.md docs: Lint -> Format in formatter.md (#10777) 2024-04-04 16:50:55 +00:00
installation.md Improvements to documentation (#12712) 2024-08-12 07:17:32 +00:00
integrations.md Bump version to 0.6.5 (#13346) 2024-09-13 20:12:26 +05:30
linter.md Improvements to documentation (#12712) 2024-08-12 07:17:32 +00:00
preview.md Spellcheck & grammar (#10375) 2024-03-13 02:34:23 +00:00
requirements-insiders.txt Update dependency ruff to v0.6.5 (#13361) 2024-09-16 09:32:06 +02:00
requirements.txt Update dependency ruff to v0.6.5 (#13361) 2024-09-16 09:32:06 +02:00
tutorial.md Improvements to documentation (#12712) 2024-08-12 07:17:32 +00:00
versioning.md Update versioning policy for editor integration (#12375) 2024-07-18 15:17:36 +00:00