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
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -4,4 +4,7 @@
|
|||
/build/**
|
||||
*.log
|
||||
env
|
||||
.tox
|
||||
.tox
|
||||
*.un~
|
||||
0/
|
||||
tests/.cache
|
||||
|
|
|
@ -19,7 +19,7 @@ def parse_args():
|
|||
|
||||
# load args with config path
|
||||
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)
|
||||
try:
|
||||
bot.start()
|
||||
|
|
2
tox.ini
2
tox.ini
|
@ -20,4 +20,4 @@ basepython =
|
|||
[testenv:flake8]
|
||||
basepython=python
|
||||
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