Przeglądaj źródła

Update makefile to use flake8 instead of pyflakes

master
David Winterbottom 13 lat temu
rodzic
commit
c97d6f5b06
2 zmienionych plików z 3 dodań i 3 usunięć
  1. 2
    3
      Makefile
  2. 1
    0
      requirements.txt

+ 2
- 3
Makefile Wyświetl plik

17
 	# Run continous tests and generate lint reports
17
 	# Run continous tests and generate lint reports
18
 	python setup.py develop
18
 	python setup.py develop
19
 	pip install -r requirements.txt
19
 	pip install -r requirements.txt
20
-	#./runtests.py --with-coverage
21
-	pyflakes oscar | perl -ple "s/: /: [E] /" | grep -v migrations > violations.txt
22
-	pep8 --exclude="migrations" oscar | perl -ple 's/: [WE](\d+)/: [W$1]/' > violations.txt
20
+	./runtests.py --with-coverage
21
+	flake8 oscar | perl -ple "s/: /: [E] /" | grep -v migrations > violations.txt
23
 
22
 
24
 test:
23
 test:
25
 	./runtests.py
24
 	./runtests.py

+ 1
- 0
requirements.txt Wyświetl plik

21
 Whoosh==2.4.1
21
 Whoosh==2.4.1
22
 WebTest==1.3.4
22
 WebTest==1.3.4
23
 django-webtest==1.5.3
23
 django-webtest==1.5.3
24
+pyflakes==0.5.0

Ładowanie…
Anuluj
Zapisz