Skip to content
This repository was archived by the owner on Aug 15, 2022. It is now read-only.

Commit 7d718fe

Browse files
author
Jeff Ammons
committed
Adding start rtmbot to tox.ini for linting
Also updating gitignore to ignore some stuff on my machine.
1 parent a0fdba1 commit 7d718fe

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@
44
/build/**
55
*.log
66
env
7-
.tox
7+
.tox
8+
*.un~
9+
0/
10+
tests/.cache

start_rtmbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def parse_args():
1919

2020
# load args with config path
2121
args = parse_args()
22-
config = yaml.load(file(args.config or 'rtmbot.conf', 'r'))
22+
config = yaml.load(open(args.config or 'rtmbot.conf', 'r'))
2323
bot = RtmBot(config)
2424
try:
2525
bot.start()

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ basepython =
2020
[testenv:flake8]
2121
basepython=python
2222
deps=flake8
23-
commands=flake8 {toxinidir}/rtmbot/core.py {toxinidir}/doc/example-plugins
23+
commands=flake8 {toxinidir}/start_rtmbot.py {toxinidir}/rtmbot/core.py {toxinidir}/setup.py {toxinidir}/doc/example-plugins

0 commit comments

Comments
 (0)