From 7eb27c4b135143f6f943d55bd65bb07269a0a690 Mon Sep 17 00:00:00 2001 From: novirium Date: Mon, 23 Dec 2019 16:46:24 +0800 Subject: [PATCH] Auto run flake8 tests --- pytest.ini | 1 + setup.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pytest.ini b/pytest.ini index d9ba717..3e988c9 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,2 +1,3 @@ [pytest] +addopts = --flake8 flake8-max-line-length = 99 \ No newline at end of file diff --git a/setup.py b/setup.py index 1740a3a..1eadf7b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,8 @@ setup(name='preserve', 'autopep8', 'pytest', 'pytest-flake8', - 'pytest-cov' + 'pytest-cov', + 'pytest-sugar' ] }, long_description=open('README.md').read(),