
1. Remove the usage of the path.join function now that all code should be going through the util file methods (and they can be mocked out as needed). 2. Adjust all occurences of the above join function to either not use it or replace it with the standard os.path.join (which can also be mocked out as needed) 3. Fix pylint from complaining about the tests folder 'helpers.py' not being found 4. Add a pylintrc file that is used instead of the options hidden in the 'run_pylint' tool.
34 lines
476 B
Makefile
34 lines
476 B
Makefile
CWD=$(shell pwd)
|
|
PY_FILES=$(shell find cloudinit bin tests tools -type f -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/
|
|
|
|
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
|
|
|