Skip to content

Commit

Permalink
Move flake8 configuration to setup.cfg
Browse files Browse the repository at this point in the history
It will be used when calling flake8 from any directory in the project
  • Loading branch information
jaimeMF committed Dec 16, 2014
1 parent ee6dfe8 commit dc9a441
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ 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

codetest:
FLAKE8_OUT=$$(flake8 --ignore E501 . | grep -v youtube_dl/extractor/__init__.py); \
if test -n "$$FLAKE8_OUT"; then \
echo "$$FLAKE8_OUT"; \
exit 1; \
fi
flake8 .

test:
#nosetests --with-coverage --cover-package=youtube_dl --cover-html --verbose --processes 4 test
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
[wheel]
universal = True

[flake8]
exclude = youtube_dl/extractor/__init__.py
ignore = E501

0 comments on commit dc9a441

Please sign in to comment.