Skip to content

Commit

Permalink
Run pycodestyle with pytest.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentzo committed Aug 14, 2018
1 parent d18edda commit 48740c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ all:
@echo " test"

test:
pycodestyle --config=. --max-line-length=240 git_archive_all.py
python setup.py test

install:
Expand Down
7 changes: 7 additions & 0 deletions test_git_archive_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from subprocess import check_call
from tarfile import TarFile

import pycodestyle
import pytest

from git_archive_all import GitArchiver
Expand Down Expand Up @@ -249,3 +250,9 @@ def make_actual(tar_file):
actual = make_actual(repo_tar)

assert actual == expected


def test_pycodestyle():
style = pycodestyle.StyleGuide(repeat=True, max_line_length=240)
report = style.check_files(['git_archive_all.py'])
assert report.total_errors == 0, "Found code style errors (and warnings)."

0 comments on commit 48740c6

Please sign in to comment.