question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is your feature request related to a problem? Please describe. I want to use flake8 instead of pylint

Describe the solution you’d like Allow choosing between flake8 and pylint

Describe alternatives you’ve considered Before I opened this issue, I wanted to make a proof of concept to see how easy/difficult would it be to run flake8 using this plugin. I wrote a simple flake report formatter to produce json output that match the output you expect from pylint. Then I changed pylint executable to run flake8 instead after correcting the parameters (i.e --format=json instead of -f json). The plugin worked flawlessly.

Additional context Flake allows passing its output format as parameters like that

flake8 --format="%(path)s:%(row)d:%(col)d:%(code)s:%(text)s"

Then you get output like that

orders/models.py:105:9:F841:local variable 'c' is assigned to but never used
orders/models.py:105:9:WPS111:Found too short name: c < 2
orders/models.py:107:12:F821:undefined name 'z'

In python (I don’t know Java very well), It can be parsed in one line

path, line, column, message_id, message =  violation_line.split(":", maxsplit=4)

Also --rc-file parameter is to be replaced with --config parameter

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:23 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dciborowcommented, Oct 28, 2020

image

1reaction
leinardicommented, Oct 28, 2020

Nice! I think you built it! Try with the runIde task (not 100% sure about the task name, don’t have the PC to check right now).

I’m also going to bed, I’ll check your progress tomorrow 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flake8: Your Tool For Style Guide Enforcement — flake8 6.0.0 ...
FAQ and Glossary¶. Frequently Asked Questions · When is Flake8 released? How can I help Flake8 release faster? What is the next version...
Read more >
Flake8
Flake8 is a wrapper around these tools: PyFlakes. pycodestyle. Ned Batchelder's McCabe script. Flake8 runs all the tools by launching the single flake8...
Read more >
PyCQA/flake8
flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python...
Read more >
What is Flake8, and why should we use it? | by Dev Null
Flake8 usage: Flake8 runs all the tools by launching the single flake8 command. You can run flake8 — help. for help instructions. Run ......
Read more >
flake8 Documentation
$ flake8 --version. This can not be specified in config files. -h, --help. Go back to index. Show a description of how to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found