astral-sh / astral-sh/ruff

Autofix S101

Open
#7,635 12 comments 0 reactions 0 assignees View on GitHub
fixes needs-decision
Dominant language
Rust
Stars
49.6k
Forks
2.4k
Avg merge
1d 15h
Merged PRs (30d)
414

Description

code: `assert x != 0`
ruff: 0.0.291
command: `ruff check --fix --fixable S101 .`
error: `S101 Use of `assert` detected`

This is an easy fix to substitute in the code specially when opted-in by the developer (if not automatically)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the provided `assert x != 0` snippet with `ruff check --fix --fixable S101 .` using Ruff 0.0.291. Determine what safe autofix behavior is intended when developers opt in, and verify the resulting command output against the issue's stated S101 diagnostic; the issue does not name implementation files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.