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
- python: "3.5"
env: TOXENV=lint
install: pip install -U tox
install: pip install pylint gitpython
language: python
script: tox
script: pylint configurator.py

View file

@ -1,4 +1,5 @@
# 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
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
class RequestHandler(BaseHTTPRequestHandler):
def log_message(self, fmt, *args):
LOG.info("%s - %s" % (self.client_address[0], fmt % args))
def log_message(self, format, *args):
LOG.info("%s - %s" % (self.client_address[0], format % args))
return
def do_BLOCK(self):

View file

@ -19,3 +19,5 @@ disable=
unnecessary-pass,
anomalous-backslash-in-string,
redefined-variable-type,
redefined-builtin,
no-else-return,