PyCQA / PyCQA/flake8

Allow Specifying format when using tee

Open
#249 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature:proposed
Dominant language
Python
Stars
3.8k
Forks
356
PR merge metrics
No merged PRs in 30d

Description

In GitLab by @agrothberg on Jul 31, 2018, 15:35

I am using flake8-formatter-junit-xml (with --format junit-xml and a --output-file specified) in order to get junit xml formatted xml output from my flake8 runs. I would also like to see the results on the screen, so I run with --tee. Unfortunately in this case, xml is printed to the screen. Ideally I would be able to control the formatter used for screen output so that it is human readable.

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.

Research direction

Start by tracing how the --tee, --format, and --output-file options select and route formatter output. Confirm the desired behavior with the existing command-line tests, then define completion as JUnit XML remaining in the output file while the screen shows human-readable results.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.