Skip to content

Commit adff71a

Browse files
committed
Add a flake8 run to Tox config, fix its complaints
1 parent bac192d commit adff71a

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

pello/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
from pello.pello_greeting import greeting
2+
3+
__all__ = ['greeting']

pello/__main__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
from pello import pello_greeting
22

33
pello_greeting.greeting()
4-

pello/pello_greeting.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ def greeting():
55
print(term.green + term.bold + "Hello World!" + term.normal)
66
except ImportError:
77
print("Hello World!")
8-

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ build-backend = "setuptools.build_meta"
66
[tool.tox]
77
legacy_tox_ini = """
88
[tox]
9-
envlist = py36, py37, py38, py39
9+
envlist = py36, py37, py38, py39, lint
1010
1111
[testenv]
1212
deps = pytest >= 3.0.0
1313
commands = pytest
14+
15+
[testenv:lint]
16+
deps = flake8
17+
commands = flake8 pello
1418
"""

0 commit comments

Comments
 (0)