Travis-CI linting (#49)

Travis-CI linting
This commit is contained in:
Daniel Perna 2017-08-16 00:57:16 +02:00 committed by GitHub
parent 1587931d42
commit f867463ed8
4 changed files with 8 additions and 5 deletions

View file

@ -6,6 +6,6 @@ matrix:
env: TOXENV=lint env: TOXENV=lint
- python: "3.5" - python: "3.5"
env: TOXENV=lint env: TOXENV=lint
install: pip install -U tox install: pip install pylint gitpython
language: python language: python
script: tox script: pylint configurator.py

View file

@ -1,4 +1,5 @@
# HASS Configurator # HASS Configurator
[![Build Status](https://travis-ci.org/danielperna84/hass-configurator.svg?branch=master)](https://travis-ci.org/danielperna84/hass-configurator)
### Configuration UI for Home Assistant ### Configuration UI for Home Assistant
Since there currently is no nice way to edit the yaml-files HASS is using through the HASS frontend, I've code-snippet-patchworked this small webapp. It's essentially an embedded [Ace editor](https://ace.c9.io/), which has syntax hightlighting for yaml (and a ton of other features you can turn on and off). Of course there's also an integrated file browser to select whatever file you want to edit. When you're done with editing the file, click the save-button and it will replace the original. Since there currently is no nice way to edit the yaml-files HASS is using through the HASS frontend, I've code-snippet-patchworked this small webapp. It's essentially an embedded [Ace editor](https://ace.c9.io/), which has syntax hightlighting for yaml (and a ton of other features you can turn on and off). Of course there's also an integrated file browser to select whatever file you want to edit. When you're done with editing the file, click the save-button and it will replace the original.

View file

@ -2786,8 +2786,8 @@ def check_access(clientip):
return False return False
class RequestHandler(BaseHTTPRequestHandler): class RequestHandler(BaseHTTPRequestHandler):
def log_message(self, fmt, *args): def log_message(self, format, *args):
LOG.info("%s - %s" % (self.client_address[0], fmt % args)) LOG.info("%s - %s" % (self.client_address[0], format % args))
return return
def do_BLOCK(self): def do_BLOCK(self):

View file

@ -18,4 +18,6 @@ disable=
line-too-long, line-too-long,
unnecessary-pass, unnecessary-pass,
anomalous-backslash-in-string, anomalous-backslash-in-string,
redefined-variable-type, redefined-variable-type,
redefined-builtin,
no-else-return,