PyCQA / PyCQA/pycodestyle

E501: Option to ignore based on regular expressions

Open
#752 5 comments 1 reaction 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

Pycodestyle already makes an exception for url's in docstrings and comments. I think a good option would be to allow arbitrary regexps to have more flexibility. One use case would be to ignore long urls in string literals by providing regex expressions such as https?://.

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 E501 implementation and the existing exception for URLs in docstrings and comments. Review how pycodestyle options are defined, then determine the expected configuration and matching behavior for user-supplied regular expressions; done means the option works for the stated string-literal URL case and has coverage for the existing exception behavior.

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
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.