This allows to easily run the tests without flake8, which makes writing/debugging tests easier for certain workflows. It should be completely backwards-compatible.
		
			
				
	
	
		
			18 lines
		
	
	
		
			532 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			532 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
testenv:
 | 
						|
	pip install -e .
 | 
						|
	pip install -r requirements/tests.txt
 | 
						|
	pip install Django
 | 
						|
 | 
						|
flake8:
 | 
						|
	flake8 compressor --ignore=E501,E128,E701,E261,E301,E126,E127,E131
 | 
						|
 | 
						|
runtests:
 | 
						|
	coverage run --branch --source=compressor `which django-admin.py` test --settings=compressor.test_settings compressor
 | 
						|
 | 
						|
coveragereport:
 | 
						|
	coverage report --omit=compressor/test*,compressor/filters/jsmin/rjsmin*,compressor/filters/cssmin/cssmin*,compressor/utils/stringformat*
 | 
						|
 | 
						|
test: flake8 runtests coveragereport
 | 
						|
 | 
						|
.PHONY: test runtests flake8 coveragereport
 |