Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Commit

Permalink
tox: add pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Jun 28, 2017
1 parent 0305de3 commit 419a5de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions setup.py
Expand Up @@ -36,6 +36,7 @@
'Topic :: Software Development :: Libraries :: Python Modules',
]


# put most of the code inside main() to be able to import setup.py in
# test_fatoptimizer.py, to ensure that VERSION is the same than
# fatoptimizer.__version__.
Expand All @@ -62,5 +63,6 @@ def main():
}
setup(**options)


if __name__ == '__main__':
main()
12 changes: 11 additions & 1 deletion tox.ini
@@ -1,6 +1,16 @@
[tox]
envlist = py34,py35
envlist = py34, py35, pep8

[testenv]
commands=
python test_fatoptimizer.py

[testenv:pep8]
basepython = python3
deps = flake8
commands =
flake8 perf setup.py doc/examples/

[flake8]
# E501 line too long (88 > 79 characters)
ignore = E501

0 comments on commit 419a5de

Please sign in to comment.