Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
flake8 example
Browse files Browse the repository at this point in the history
  • Loading branch information
zrzka committed Oct 4, 2017
1 parent 32fb44e commit 89763fb
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pythonista_startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,16 @@
},
'analyzer': {
'hud_alert_delay': 1.0,
'ignore_codes': ['E114', 'E116'],
'max_line_length': 127,
'remove_whitespaces': True
'remove_whitespaces': True,
'ignore_codes': ['E114', 'E116'], # ignored for flake8
'max_line_length': 127, # ignored for flake8
# In case flake8 is provided, ignore_codes and max_line_length options are ignored
'flake8': [
# 1st pass
['--select=E901,E999,F821,F822,F823'],
# 2nd pass
['--max-complexity=10', '--max-line-length=127', '--ignore=E402']
]
},
'tester': {
'hud_alert_delay': 1.0,
Expand Down

0 comments on commit 89763fb

Please sign in to comment.