lordmauve / lordmauve/flake8-html

Running flake8 with -quiet doesn't write a html report

Open
#9 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
50
Forks
17
PR merge metrics
No merged PRs in 30d

Description

$ pip freeze | grep -i flake8
flake8==3.3.0
flake8-html==0.4.0

$ python --version
Python 3.5.3

$ uname -a
Linux hostname 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u1 (2017-06-18) x86_64 GNU/Linux

$ cat /etc/debian_version
9.0

### flake8-html doesn't write HTML reports

I hooked flake8-html into our CI and wanted to suppress output with -qq, but no reports were generated. While testing it turned out that even a single --quiet will prevent the reports from being written to disk.

### What I Did

flake8 --format=html --htmldir=tmp --exit-zero --quiet

$ ls -ld tmp
ls: cannot access 'tmp': No such file or directory

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

Reproduce the reported command with flake8 3.3.0 and flake8-html 0.4.0, then trace the plugin entry point responsible for writing the HTML report. The issue is done when using --quiet still creates the requested tmp directory and HTML report while preserving the intended quiet output.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.