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.

Max Line Length and E501

See original GitHub issue

Is the “Max Line Length” config parameter supposed to be passed as --max-line-length to flake8? If so, it isn’t working for me with atom 1.0.0, linter 1.1.0 and linter-flake8 1.4.2. Here are the relevant lines from my config.cson:

  linter: {}
  "linter-flake8":
    maxLineLength: 95

but I am getting E501 errors based on a max-line-length of 79, as shown in this screen capture: e501

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
badraycommented, Jul 1, 2015

Sorry I forgot that config.cson is atom default package settings file 😃. But you should use a graphical plugin settings editor which is in Atom->Preferences->Packages->linter-flake8->Settings.

tox.ini file is read by flake8 directly, not by the linter, so in your case it should look like this:

[flake8]
max-line-length = 95

See http://flake8.readthedocs.org/en/latest/config.html for reference.

Hope it helps!

0reactions
badraycommented, Jul 8, 2015

👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

python flake8 ignore E501 and max-line-length - Stack Overflow
cfg file but my question is if you ignore E501 then you code accepts any number of characters per line in a module,...
Read more >
Configuration — flake8 2.5.5 documentation
The user settings are read from the ~/.config/flake8 file (or the ~/.flake8 file on Windows). Example: [flake8] ignore = E226,E302,E41 max-line-length = 160...
Read more >
how to set max-line-length? · Issue #38 · DamnWidget/anaconda
its exist pep8 --max-line-length option that allow to set max line length i.e. 120. default it is set to 79. i know this...
Read more >
Setting language-specific maximum line length - IBM
The default maximum line length setting for PL/I is 80 . Setting the HLASM maximum line length. To configure the HLASM maximum line...
Read more >
The Black code style - Black 22.12.0 documentation
Line length# · max-line-length to 88 and mostly forget about it. However, it's better if you use Bugbear's B950 warning instead of E501,...
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