mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	Use flake8 instead of pyflakes and pep8
It combines both tools
This commit is contained in:
		
							
								
								
									
										7
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								Makefile
									
									
									
									
									
								
							@@ -36,12 +36,11 @@ install: youtube-dl youtube-dl.1 youtube-dl.bash-completion youtube-dl.zsh youtu
 | 
				
			|||||||
	install -m 644 youtube-dl.fish $(DESTDIR)$(SYSCONFDIR)/fish/completions/youtube-dl.fish
 | 
						install -m 644 youtube-dl.fish $(DESTDIR)$(SYSCONFDIR)/fish/completions/youtube-dl.fish
 | 
				
			||||||
 | 
					
 | 
				
			||||||
codetest:
 | 
					codetest:
 | 
				
			||||||
	PYFLAKES_OUT=$$(pyflakes youtube_dl | grep -v youtube_dl/extractor/__init__.py); \
 | 
						FLAKE8_OUT=$$(flake8 --ignore E501 . | grep -v youtube_dl/extractor/__init__.py); \
 | 
				
			||||||
	if test -n "$$PYFLAKES_OUT"; then \
 | 
						if test -n "$$FLAKE8_OUT"; then \
 | 
				
			||||||
		echo "$$PYFLAKES_OUT"; \
 | 
							echo "$$FLAKE8_OUT"; \
 | 
				
			||||||
		exit 1; \
 | 
							exit 1; \
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
	pep8 . --ignore E501
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
test:
 | 
					test:
 | 
				
			||||||
	#nosetests --with-coverage --cover-package=youtube_dl --cover-html --verbose --processes 4 test
 | 
						#nosetests --with-coverage --cover-package=youtube_dl --cover-html --verbose --processes 4 test
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user