cloud-init/Makefile
Scott Moser 4e01d1f81e fix pylint in all files used by ./tools/run-pylint
'make pylint' was not checking tests and tools.
This fixies a bunch of pylint/pep8 issues in that code.

It also enables 'make pylint' to check them.
2012-08-09 13:42:55 -04:00

34 lines
475 B
Makefile

CWD=$(shell pwd)
PY_FILES=$(shell find cloudinit bin tests tools -name "*.py")
PY_FILES+="bin/cloud-init"
all: test
pep8:
$(CWD)/tools/run-pep8 $(PY_FILES)
pylint:
$(CWD)/tools/run-pylint $(PY_FILES)
pyflakes:
pyflakes $(PY_FILES)
test:
nosetests $(noseopts) tests/unittests/
2to3:
2to3 $(PY_FILES)
clean:
rm -rf /var/log/cloud-init.log \
/var/lib/cloud/
rpm:
./packages/brpm
deb:
./packages/bddeb
.PHONY: test pylint pyflakes 2to3 clean pep8 rpm deb