Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Enable B008 (function-call-in-default-argument) linting rules

Open Beginner friendly
#6,919 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
tooling

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

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.

More from mozilla/bugbug

All issues in mozilla/bugbug

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.