Adding start rtmbot to tox.ini for linting
Also updating gitignore to ignore some stuff on my machine.
This commit is contained in:
parent
a0fdba13b4
commit
7d718fe54f
3 changed files with 6 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -5,3 +5,6 @@
|
||||||
*.log
|
*.log
|
||||||
env
|
env
|
||||||
.tox
|
.tox
|
||||||
|
*.un~
|
||||||
|
0/
|
||||||
|
tests/.cache
|
||||||
|
|
|
@ -19,7 +19,7 @@ def parse_args():
|
||||||
|
|
||||||
# load args with config path
|
# load args with config path
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
config = yaml.load(file(args.config or 'rtmbot.conf', 'r'))
|
config = yaml.load(open(args.config or 'rtmbot.conf', 'r'))
|
||||||
bot = RtmBot(config)
|
bot = RtmBot(config)
|
||||||
try:
|
try:
|
||||||
bot.start()
|
bot.start()
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -20,4 +20,4 @@ basepython =
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
basepython=python
|
basepython=python
|
||||||
deps=flake8
|
deps=flake8
|
||||||
commands=flake8 {toxinidir}/rtmbot/core.py {toxinidir}/doc/example-plugins
|
commands=flake8 {toxinidir}/start_rtmbot.py {toxinidir}/rtmbot/core.py {toxinidir}/setup.py {toxinidir}/doc/example-plugins
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue