astral-sh / astral-sh/ruff

PyTorch-specific rules

Open
#12,349 7 comments 10 reactions 0 assignees View on GitHub
rule
Dominant language
Rust
Stars
49.6k
Forks
2.4k
Avg merge
1d 21h
Merged PRs (30d)
435

Description

Introducing lints for pytorch expands `ruff` utility in the AI/machine learning space, in addition to [Numpy](https://github.com/astral-sh/ruff/issues/2455) and [Spark](https://github.com/astral-sh/ruff/issues/7272). Detecting potential errors during linting has the potential to save costly GPU compute.

Contributor guide

Open the contributing guide

Research direction

No implementation files, tests, rule names, or entry points are identified in the issue. Start by reviewing the linked NumPy and Spark issues and the existing Ruff rule structure; the work is complete only when specific PyTorch lint checks and their expected behavior are defined and implemented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch, rust
Domain
machine-learning, 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.