Max Line Length and E501
See original GitHub issueIs 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:
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry I forgot that
config.cson
is atom default package settings file 😃. But you should use a graphical plugin settings editor which is inAtom->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:See http://flake8.readthedocs.org/en/latest/config.html for reference.
Hope it helps!
👍