Skip to content

Ruff

An extremely fast Python linter and code formatter, written in Rust.

Mostly friendly. Welcome, with extra rules.

Homepage Repository

AI is supported as a coding tool, with contributors responsible for what they submit and a human who understands the work in the loop. Autonomous agents are not allowed. Issues, PR bodies and replies must be in the contributor's own words; quoted AI context must be marked and explained, and AI editing for non-native speakers is accepted.

Policy by area

Code contributionsPatches, pull requests and other changes written with AI tools.
Mostly friendly
  • Contributor takes full responsibility
  • No autonomous agents
Issues & bug reportsBug reports, security reports and issues found or written with AI tools.
Unfriendly
  • Only minor help (autocomplete, grammar)
AI-written textPull request descriptions, issue comments and summaries written by AI.
Unfriendly
  • AI use must be disclosed
  • Only minor help (autocomplete, grammar)

In their own words

Code contributions

We support using AI (i.e., LLMs) as tools for coding. However, you remain responsible for any code you publish and we are responsible for any code we merge and release.

Astral AI Policy

We do not allow autonomous agents to be used for contributing to our projects

Astral AI Policy

Issues & bug reports

If you are opening an issue, we expect you to describe the problem in your own words.

Astral AI Policy

AI-written text

AI should not be used to generate comments when communicating with maintainers

Astral AI Policy

If you wish to include context from an interaction with AI in your comments, it must be in a quote block (e.g., using `>`) and disclosed as such.

Astral AI Policy

If you are using AI to edit your comments for this purpose, please take the time to ensure it reflects your own voice and ideas.

Astral AI Policy

Sources

  • Astral AI Policygithub.com/astral-sh/.github/blob/main/AI_POLICY.mdSnapshot 9 Oct 2026