lint: no ruff rule set in `pyproject.toml`, so "ruff finds nothing" has no one-command check

Open Beginner friendly
#436 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
78/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
tooling

Research direction

Open pyproject.toml at the checkout root; the first reproduce snippet prints its tool tables and should show only pytest and setuptools. Add a [tool.ruff.lint] table with select = ["F","E","W","B","SIM","PERF","C4","PIE","RET"] and ignore = ["E501"], then run uvx ruff check --statistics scriptconv with no flags. Done means that single command reports the same 108 items as the third reproduce line, so "ruff finds nothing" has a fixed meaning.

Written by the indexing model from the issue text.

Description

🤖 Auto-generated by Claude Opus 5.5 (claude-opus-5-5) via Claude Code — NOT human-reviewed. Verify before acting.
Verified: reproduced on scriptconv 0.0.4a157 (origin/dev 3f61642) with ruff 0.17.6.

scriptconv has no ruff configuration, so "ruff finds nothing" has no fixed meaning. A PR body that says ruff is clean must name its rule set, and a reviewer must pass the same flags to check it. Three common rule sets give 108, 866 and 1,914 items on the scriptconv package.

Reproduce

python -I -c '
import tomllib
print(sorted(tomllib.load(open("pyproject.toml", "rb")).get("tool", {})))'
uvx ruff check --isolated --statistics scriptconv | grep Found
uvx ruff check --isolated --statistics --select F,E,W,B,SIM,PERF,C4,PIE,RET scriptconv | grep Found
uvx ruff check --isolated --statistics --select F,E,W,B,SIM,PERF,C4,PIE,RET --ignore E501 scriptconv | grep Found

Run each line from the root of a scriptconv checkout.

Observed

pyproject.toml has the tool tables pytest and setuptools only. No ruff.toml or .ruff.toml exists.

Rule set Items
ruff default 866
F,E,W,B,SIM,PERF,C4,PIE,RET 1,914
F,E,W,B,SIM,PERF,C4,PIE,RET, without E501 108

The PR 428 body names the third set.

Expected

One command checks a "ruff finds nothing" claim. A [tool.ruff.lint] table in pyproject.toml with the rule set of the cleanup rounds (select = [...], ignore = ["E501"]) makes ruff check alone the check.

Where

pyproject.toml of scriptconv.

Dominant language
Python
Stars
4
Forks
1
Avg merge
8h 20m
Merged PRs (30d)
128

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TigreGotico/scriptconv

All issues in TigreGotico/scriptconv

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.