workflow on Win with pure Pylama and pure gjslint - lukaszpiotr/pylama_with_gjslint GitHub Wiki
pylama
workflow pure -
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-packages
topylama
virtualenvE:\cc\pylama\Lib\site-packages
move 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 freeze
should result in-curses==2.2
- if tests failed:
-
run the tool from
E:\cc\code_pylama\pylama
using:python -m pylama.main
python -m pylama.main --linters=pep8,mccabe --report=report.txt E:\path\to\dir_or_file
gjslint
(Google JavaScript Style Guide)
workflow pure -
enter into
E:\cc\code_gjslint
-
svn checkout http://closure-linter.googlecode.com/svn/trunk/ closure-linter
-
run the tool from
E:\cc\code_gjslint
usingpython closure_gjslint\gjslint.py
- if execution results in
ImportError: No module named gflags
add toE:\cc\pylama\Lib\site-packages
following items (take them from:C:\Python27\Lib\site-packages
):gfags.py
gflags_validator.py
- if execution results in
-
run the tool from
E:\cc\code_gjslint
usingpython 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: