Remove --benchmark / --statistics / --count ?

Open
#1,699 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
cli, tooling

Research direction

Start by tracing how the --benchmark, --statistics, and --count options are collected and exposed when running flake8 -j1. Review the discussion around whether they should be removed or supplied by a third-party formatter, and use issue #1458 as part of the acceptance check; done means the agreed option behavior and profiling concern are addressed.

Written by the indexing model from the issue text.

Description

describe the request

did some quick profiling, flake8 -j1 spends about 5% of its time collecting these (even if they're not selected).

I also feel like these are not that useful and could probably be derived in a separate formatter if desired? I don't think I've ever used them but I've definitely broken them a few times.

what say to removing these options? (and perhaps providing a third party formatter for them as a middle-ground?)

this would also "trivially" solve #1458

Dominant language
Python
Stars
3.8k
Forks
452
Avg merge
14h 52m
Merged PRs (30d)
3

Getting set up

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 PyCQA/flake8

All issues in PyCQA/flake8

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.