PyCQA / PyCQA/pycodestyle

Feature Request: Ability to Specify Ranges of Lines to Check

Open
#659 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5.2k
Forks
754
PR merge metrics
No merged PRs in 30d

Description

This would be helpful for automated code review based on diffs.

It's not entirely straightforward, as the diff could end in the middle of a block, leading to spurious errors. These could either be automatically ignored, or the file checked until all current blocks are exited.

Contributor guide

Open the contributing guide

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.

Research direction

Start by locating the repository’s single Python implementation file and reviewing how it currently selects lines to check. Define the range interface and behavior for diffs ending inside a block, then add coverage showing that selected ranges avoid spurious errors and run the existing test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
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.