Skip to content

Commit

Permalink
tests: check pep8 compliance via pytest-pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
jtriley committed Feb 11, 2014
1 parent e52b36a commit 69e564f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[pytest]
addopts = starcluster
addopts = starcluster -xvs -rs --pep8 --clearcache
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ pyflakes==0.7.3
watchdog==0.7.1
pytest==2.5.2
pytest-cov==1.6
pytest-pep8==1.0.5
sphinx==1.2.1
pudb==2013.5.1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def run_tests(self):

console_scripts = ['starcluster = starcluster.cli:main']
extra = dict(test_suite="starcluster.tests",
tests_require=["pytest", "pytest-cov"],
tests_require=["pytest", "pytest-cov", "pytest-pep8"],
cmdclass={"test": PyTest},
install_requires=["paramiko>=1.12.1", "boto>=2.23.0",
"workerpool>=0.9.2", "Jinja2>=2.7",
Expand Down
3 changes: 0 additions & 3 deletions starcluster/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ def pytest_runtest_setup(item):


def pytest_configure(config):
config.option.exitfirst = True
config.option.verbose = True
config.option.capture = 'no'
if config.getoption("--coverage"):
config.option.cov_source = ['starcluster']
config.option.cov_report = ['term-missing']

0 comments on commit 69e564f

Please sign in to comment.