Removes unused imports and unused variables as reported by pyflakes

Is PyCQA/autoflake beginner-friendly?

We have not seen enough recent pull requests from outside contributors to PyCQA/autoflake to say how often they are merged. No beginner-friendly issue is open right now; the list below has the other issues we hold for it.

Stars
954
Forks
102
Open beginner issues
0
Indexed issues
37
Dominant language
Python
License
MIT
Last GitHub push
Aug 23, 2026
Latest indexed
Sep 19, 2026
Contributing guide
No contributing guide
Code of conduct
No code of conduct
Beginner labels
help wanted
PR merge metrics
No merged PRs in 30d

How to contribute to PyCQA/autoflake

  1. There is no contributing guide, so start from the README and a few recently merged pull requests to see how changes are proposed.
  2. Your contributions will be published under the project's MIT license.
  3. Follow the repository to hear when a new beginner-friendly issue opens, or look through the other issues below.

Issues somebody may already be working on are listed last. List everything by date

  • not removing imports when a symbol is redeclared
    Open
    enhancement

    Difficulty 3/5 1-2 days Newbie friendliness 42/100

    PyCQA/autoflake#321 ·

  • Don't remove re-exported imports
    Open

    Difficulty 3/5 1-2 days Newbie friendliness 35/100

    PyCQA/autoflake#258 · 2 comments ·

  • Breaking change to configuration logic in v2.1.0
    Open
    bug

    Difficulty 3/5 1-2 days Newbie friendliness 35/100

    PyCQA/autoflake#251 · 8 comments · 2 reactions ·

  • (🎁) specify files in config file
    Open

    Difficulty 3/5 1-2 days Newbie friendliness 42/100

    PyCQA/autoflake#239 · 1 comment · 3 reactions ·

  • Feature request: remove ellipsis
    Open
    enhancement

    Difficulty 3/5 1-2 days Newbie friendliness 38/100

    PyCQA/autoflake#235 · 3 reactions ·

  • Feature request: remove type-checking block instead of inserting pass
    Open
    enhancement

    Difficulty 3/5 1-2 days Newbie friendliness 48/100

    PyCQA/autoflake#234 ·

  • Run on jupyter notebook, with .ipynb extension
    Open

    Difficulty 4/5 3-5 days Newbie friendliness 35/100

    PyCQA/autoflake#230 ·

  • [Feature request] Ignore import-only files
    Open

    Difficulty 3/5 1-2 days Newbie friendliness 45/100

    PyCQA/autoflake#221 ·

  • Automatically resolving flake8-conda: C0301: line too long?
    Open

    Difficulty 5/5 Over a week Newbie friendliness 30/100

    PyCQA/autoflake#139 ·

  • False positive `UndefinedName` with `typing.Literal`
    Open

    Difficulty 3/5 1-2 days Newbie friendliness 48/100

    PyCQA/autoflake#109 ·

  • Flag to enable all other mod flags
    Open
    enhancement

    Difficulty 3/5 1-2 days Newbie friendliness 45/100

    PyCQA/autoflake#102 ·

  • Extension Autoflake not found in VSCode + WSL:Ubuntu
    Open

    Difficulty 3/5 1-2 days Newbie friendliness 38/100

    PyCQA/autoflake#101 · 2 comments ·

  • autoflake should ignore unused variables starting with '_'
    Open

    Difficulty 3/5 1-2 days Newbie friendliness 50/100

    PyCQA/autoflake#96 · 2 reactions ·

  • if/import
    Open

    Difficulty 3/5 1-2 days Newbie friendliness 25/100

    PyCQA/autoflake#94 ·

  • Why isn't all the code after a return statement removed?
    Open

    Difficulty 4/5 3-5 days Newbie friendliness 35/100

    PyCQA/autoflake#93 ·

  • Removing unused variables doesn't work
    Open

    Difficulty 3/5 1-2 days Newbie friendliness 45/100

    PyCQA/autoflake#87 · 1 comment ·

  • Autoflake removes imports that are used as the string bound of a type variable
    Open

    Difficulty 3/5 1-2 days Newbie friendliness 45/100

    PyCQA/autoflake#84 · 2 comments ·

  • Incorrect replacement of unused variable with pass when followed by comment or empty line
    Open

    Difficulty 3/5 1-2 days Newbie friendliness 35/100

    PyCQA/autoflake#82 · 5 comments · 9 reactions ·

  • Option to be quiet in passing check mode?
    Open

    Difficulty 3/5 1-2 days Newbie friendliness 35/100

    PyCQA/autoflake#81 · 1 comment · 4 reactions ·

  • Option to also print diffs when using `--in-place`
    Open

    Difficulty 3/5 1-2 days Newbie friendliness 45/100

    PyCQA/autoflake#77 · 1 comment · 3 reactions ·

  • incorrectly removes unused variable when surrounded in typing
    Open

    Difficulty 3/5 1-2 days Newbie friendliness 45/100

    PyCQA/autoflake#76 · 4 comments · 6 reactions ·

  • Unused imports with trailing comments are not removed
    Open

    Difficulty 3/5 1-2 days Newbie friendliness 42/100

    PyCQA/autoflake#72 ·

  • Fix F541
    Open

    Difficulty 3/5 1-2 days Newbie friendliness 35/100

    PyCQA/autoflake#67 · 1 comment · 3 reactions ·

  • doesn't remove unused when calling a function with a kwarg
    Open
    enhancement help wanted

    Difficulty 2/5 1-3 hours Newbie friendliness 48/100

    PyCQA/autoflake#48 ·

  • Expand *all* star imports?
    Open

    Difficulty 5/5 Over a week Newbie friendliness 20/100

    PyCQA/autoflake#30 · 3 comments ·

  • Add --only-remove-pass
    Open

    Difficulty 3/5 1-2 days Newbie friendliness 45/100

    PyCQA/autoflake#13 · 1 reaction ·

  • --remove-unused-variables does not work
    Possibly taken @Sanjays2402 claimed this 51 days ago. Open

    Difficulty 3/5 1-2 days Newbie friendliness 68/100

    PyCQA/autoflake#372 ·

  • Colored diff output
    Possibly taken @pear1-pea claimed this 9 days ago. Open

    Difficulty 3/5 1-2 days Newbie friendliness 45/100

    PyCQA/autoflake#307 · 1 reaction ·

  • Support exclusion of specific imports
    Possibly taken @ChrisJr404 claimed this 92 days ago. Open
    enhancement

    Difficulty 4/5 3-5 days Newbie friendliness 35/100

    PyCQA/autoflake#302 · 3 comments ·

  • Unused submodule imports are left if the top level module is used
    Possibly taken @Sanjays2402 claimed this 93 days ago. Open
    bug

    Difficulty 3/5 1-2 days Newbie friendliness 45/100

    PyCQA/autoflake#282 ·

  • ignore-pass-statements introduces unnecessary pass statements
    Possibly taken @terminalchai claimed this 221 days ago. Open
    bug

    Difficulty 3/5 1-2 days Newbie friendliness 38/100

    PyCQA/autoflake#206 · 5 comments · 4 reactions ·

  • Remove duplicate keys doesn't remove always
    Possibly taken @AleksZyro claimed this 42 days ago. Open

    Difficulty 3/5 1-2 days Newbie friendliness 45/100

    PyCQA/autoflake#113 · 1 comment · 1 reaction ·

  • Trailing comment prevents removal of unused imports
    Possibly taken @AdamMagued claimed this 54 days ago. Open

    Difficulty 3/5 1-2 days Newbie friendliness 45/100

    PyCQA/autoflake#106 ·

  • remove-unused-variable not removing captured variable in except clauses
    Possibly taken @AleksZyro claimed this 42 days ago. Open
    enhancement

    Difficulty 3/5 1-2 days Newbie friendliness 50/100

    PyCQA/autoflake#66 · 2 comments · 2 reactions ·

  • Unused pass not being removed in certain cases
    Possibly taken @Eljees claimed this 103 days ago. Open
    bug

    Difficulty 2/5 1-3 hours Newbie friendliness 52/100

    PyCQA/autoflake#65 · 2 reactions ·

  • Populate __all__ to avoid unused name errors
    Possibly taken @adhikasp claimed this 3375 days ago. Open
    enhancement

    Difficulty 3/5 1-2 days Newbie friendliness 35/100

    PyCQA/autoflake#16 · 2 comments ·

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.