Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

let g:syntastic_python_flake8_args doesn't work #508

Closed
jgb opened this issue Feb 15, 2013 · 11 comments
Closed

let g:syntastic_python_flake8_args doesn't work #508

jgb opened this issue Feb 15, 2013 · 11 comments

Comments

@jgb
Copy link

jgb commented Feb 15, 2013

I've got this in my vimrc:

let g:syntastic_python_checkers = ['flake8', 'pyflakes', 'pylint']
let g:syntastic_python_flake8_args = "--ignore=E501"

And the flake8 arguments just get ignored... Any idea why?
Using the latest git commit.

@dimaqq
Copy link

dimaqq commented Feb 20, 2013

works for me today...

@scrooloose
Copy link
Collaborator

hmm, not sure what the problem is here - those options look right.

Edit syntax_checkers/python/flake8.vim and stick echomsg makeprg in between lines 31 and 32 and see if it is using your settings.

@prologic
Copy link

prologic commented Mar 7, 2013

According to what I read in the docs this should work:

" Sytastic Settings
let g:syntastic_python_checkers = ["flake8"]
let g:syntastic_flake8_max_line_length="160"

This doesn't work though. Is the docs wrong?

@prologic
Copy link

prologic commented Mar 7, 2013

let g:syntastic_flake8_args="--max-line-length=160"

This does not work either. Cloned Syntastic today.

@prologic
Copy link

prologic commented Mar 7, 2013

Tried what @scrooloose suggested and I'm not seeing my settings being echoed. Only the flake8 executable and single argument. e.g:

flake8  'ccav/main.py'

@prologic
Copy link

bump/ping?

@lcd047
Copy link
Collaborator

lcd047 commented Apr 4, 2013

It works for me with the current HEAD. Can you please confirm?

@prologic
Copy link

prologic commented Apr 4, 2013

Ill confirm this morning when i get into work

cheers
James

Sent from my iPad

On 05/04/2013, at 0:19, LCD 47 notifications@github.com wrote:

It works for me with the current HEAD. Can you please confirm?


Reply to this email directly or view it on
GitHubhttps://github.com//issues/508#issuecomment-15899840
.

@prologic
Copy link

prologic commented Apr 4, 2013

This still does not work in head.

Here's my .vimrc config:

" Sytastic Settings
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_warning_symbol="⚠"
let g:syntastic_error_symbol="✗"
let g:syntastic_enable_signs=1
let g:syntastic_check_on_open=1
let g:syntastic_python_checkers = ["flake8"]

" flake8
let g:flake8_max_line_length=160
let g:syntastic_flake8_max_line_length=160

James Mills / prologic

E: prologic@shortcircuit.net.au
W: prologic.shortcircuit.net.au

On Fri, Apr 5, 2013 at 7:36 AM, James Mills prologic@shortcircuit.net.auwrote:

Ill confirm this morning when i get into work

cheers
James

Sent from my iPad

On 05/04/2013, at 0:19, LCD 47 notifications@github.com wrote:

It works for me with the current HEAD. Can you please confirm?


Reply to this email directly or view it on GitHubhttps://github.com//issues/508#issuecomment-15899840
.

@lcd047
Copy link
Collaborator

lcd047 commented Apr 5, 2013

These were never supposed to work, and (perhaps unsurprisingly) they don't:

let g:flake8_max_line_length=160
let g:syntastic_flake8_max_line_length=160

What is supposed to work is either of these:

let g:syntastic_python_flake8_args = "--ignore=E501"
let g:syntastic_python_flake8_args = "--max-line-length=160"

Both do work on my machine.

@prologic
Copy link

prologic commented Apr 5, 2013

Ahhh :) Then somehow I got mixed up in the documentation.

I'll check the docs and post a bug/pull-request to fix it if it's still
wrong!

Thanks!

James Mills / prologic

E: prologic@shortcircuit.net.au
W: prologic.shortcircuit.net.au

On Fri, Apr 5, 2013 at 3:19 PM, LCD 47 notifications@github.com wrote:

These were never supposed to work, and (perhaps unsurprisingly) they don't:

let g:flake8_max_line_length=160
let g:syntastic_flake8_max_line_length=160

What is supposed to work is either of these:

let g:syntastic_python_flake8_args = "--ignore=E501"
let g:syntastic_python_flake8_args = "--max-line-length=160"

Both do work on my machine.


Reply to this email directly or view it on GitHubhttps://github.com//issues/508#issuecomment-15939412
.

@lcd047 lcd047 closed this as completed Apr 14, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants