B909 has several false positives on black codebase
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 123
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 5
Description
E.g.
def lib2to3_parse():
grammars = get_grammars()
errors = {}
for grammar in grammars:
errors[grammar.version] = InvalidInput()
See https://github.com/psf/black/actions/runs/8776854301/job/24081105618?pr=4318 for more
cc @mimre25 in case interested in improving the check :-)
Contributor guide
No contributing guide indexed for this repository
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 with the B909 implementation and reproduce the reported false positive using the lib2to3_parse example. Review the linked Black CI run for additional cases, then establish regression coverage showing that valid code is no longer flagged while genuine B909 violations remain detected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100