Skip to content

Commit 0868160

Browse files
netromdkBrandon Davis
authored and
Brandon Davis
committed
Also style-check slacker.py
1 parent b40b08a commit 0868160

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ check-cmds:
2020
./slacker.py --verbose --check
2121

2222
check-style:
23-
flake8 --ignore E111,E114,E302 --max-line-length 100 --count --show-source slacker
23+
flake8 --ignore E111,E114,E121,E126,E302 --max-line-length 100 --count --show-source \
24+
slacker slacker.py
2425

2526
check: check-cmds check-style

slacker.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
# Make sure v3+ is used.
44
import sys
55
vinfo = sys.version_info
6-
if vinfo.major < 3:
7-
print("You are using Python v{}.{}. v3+ is required!".format(vinfo.major, vinfo.minor))
6+
if vinfo < (3, 0):
7+
print("Python v3+ is required! You are using v{}.{}.".format(vinfo.major, vinfo.minor))
88
sys.exit(-1)
99

10-
from slacker.main import start_slacker
10+
from slacker.main import start_slacker # noqa: E402
1111

1212
if __name__ == "__main__":
1313
start_slacker()

0 commit comments

Comments
 (0)