E501: Option to ignore based on regular expressions
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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