Skip to content

Instantly share code, notes, and snippets.

@bubenkoff
Created January 30, 2013 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bubenkoff/4674609 to your computer and use it in GitHub Desktop.
Save bubenkoff/4674609 to your computer and use it in GitHub Desktop.
Flake8Lint config
{
// run flake8 lint on file saving
"lint_on_save": true,
// popup a dialog of detected conditions?
"popup": true,
// highlight detected conditions?
"highlight": true,
// set python interpreter (lint files for python >= 2.7):
// - 'internal' for use internal Sublime Text 2 interpreter (2.6)
// - 'auto' for search default system python interpreter (default value)
// - absolute path to python interpreter for define another one
"python_interpreter": "auto",
// turn on pyflakes error lint
"pyflakes": true,
// turn on pep8 error lint
"pep8": true,
// turn off complexity check (set number > 0 to check complexity level)
"complexity": -1,
// set desired max line length
"pep8_max_line_length": 120,
// select errors and warnings (e.g. ["E", "W6"])
"select": [],
//skip errors and warnings (e.g. ["E303", E4", "W"])
"ignore": ["E128", "E712"]
}
@hvdklauw
Copy link

I've set complexity to 10 (seems to be reasonable level looking at some of the paylogic codebase)
And I've only ignored E711 (SQLAlchemy), I guess I should add the E712, but I think E128 is a good one too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment