workflow on Win with pure Pylama and pure gjslint - lukaszpiotr/pylama_with_gjslint GitHub Wiki
workflow pure pylama
-
enter into:
E:\cc -
run
C:\Python27\Scripts\virtualenv.exe pylama --no-site-packages -
run
E:\cc\pylama\Scripts\activate -
run
pip freeze -
enter into
E:\cc\code_pylama -
clone
https://github.com/klen/pylama.git -
enter
E:\cc\code_pylama\pylama -
run tests:
python -m unittest discover- if tests failed:
- install: curses-2.2.win32-py2.7.exe : http://www.lfd.uci.edu/~gohlke/pythonlibs/
from
C:\Python27\Lib\site-packagestopylamavirtualenvE:\cc\pylama\Lib\site-packagesmove following items:_curses.pyd_curses_panel.pyd_curses-2.2-py2.7.egg-info
- install: curses-2.2.win32-py2.7.exe : http://www.lfd.uci.edu/~gohlke/pythonlibs/
from
- now running
pip freezeshould result in-curses==2.2
- if tests failed:
-
run the tool from
E:\cc\code_pylama\pylamausing:python -m pylama.main
python -m pylama.main --linters=pep8,mccabe --report=report.txt E:\path\to\dir_or_file
workflow pure gjslint (Google JavaScript Style Guide)
-
enter into
E:\cc\code_gjslint -
svn checkout http://closure-linter.googlecode.com/svn/trunk/ closure-linter -
run the tool from
E:\cc\code_gjslintusingpython closure_gjslint\gjslint.py- if execution results in
ImportError: No module named gflagsadd toE:\cc\pylama\Lib\site-packagesfollowing items (take them from:C:\Python27\Lib\site-packages):gfags.pygflags_validator.py
- if execution results in
-
run the tool from
E:\cc\code_gjslintusingpython closure_gjslint\gjslint.py- if execution results in
ImportError: No module named closure_linter- run:
set PYTHONPATH=E:\cc\code_gjslint - and confirm existence of this path in current environment using:
echo %PYTHONPATH%
- run:
- if execution results in
-
run:
- flat:
python closure_gjslint\gjslint.py my_js_file.js - recursive:
python closure_gjslint\gjslint.py -r E:\bootstrap\js
----- FILE : E:\bootstrap\js\bootstrap.js ----- Line 21, E:0001: Extra space after "function" Line 23, E:0131: Single-quoted string preferred over double-quoted string. Line 29, E:0001: Extra space after "function" Line 31, E:0001: Extra space after "function" Line 33, E:0001: Extra space after "function" - flat: