Enable B008 (function-call-in-default-argument) linting rules
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
Research direction
Look at the flake8-bugbear configuration in the project's linting setup (likely in pyproject.toml, setup.cfg, or .flake8). Find where B008 is excluded. Understand how FastAPI route handlers use Depends and Query as default arguments. The task is to modify the linting rules to enable B008 but exclude it specifically for FastAPI's pattern, or adjust the rule's configuration to avoid false positives on idiomatic FastAPI code.
Written by the indexing model from the issue text.
Description
https://github.com/mozilla/bugbug/pull/6904#discussion_r4071916855
PR #6904 enables most of flake8-bugbear ("B") but excludes B008 (function-call-in-default-argument) entirely.
B008 flags every FastAPI route handler that uses Depends(...) or Query(...) as a default argument value — the standard, idiomatic way to write FastAPI route handlers.
- Dominant language
- Python
- Stars
- 570
- Forks
- 351
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 66
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.
More from mozilla/bugbug
-
good-first-bug hackbot
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
good-first-bug hackbot
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
hackbot
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
hackbot
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Similar issues
-
area: harness bug status: needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Human-Agent-Society/reef#625 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 1/5 Under an hour Newbie friendliness 80/100
learningequality/kolibri#15351 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Name consistency Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
eellak/triplestore#65 · 1 comment ·