Fix lint errors in juju kubernetes master and e2e charms

parent 6dab46e3
...@@ -14,14 +14,11 @@ ...@@ -14,14 +14,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import os
from charms import layer from charms import layer
from charms.layer import snap from charms.layer import snap
from charms.reactive import hook from charms.reactive import hook
from charms.reactive import is_state from charms.reactive import is_state
from charms.reactive import remove_state
from charms.reactive import set_state from charms.reactive import set_state
from charms.reactive import when from charms.reactive import when
from charms.reactive import when_not from charms.reactive import when_not
...@@ -30,7 +27,6 @@ from charmhelpers.core import hookenv ...@@ -30,7 +27,6 @@ from charmhelpers.core import hookenv
from shlex import split from shlex import split
from subprocess import call
from subprocess import check_call from subprocess import check_call
from subprocess import check_output from subprocess import check_output
......
#!/usr/bin/make
all: lint unit_test
.PHONY: clean
clean:
@rm -rf .tox
.PHONY: apt_prereqs
apt_prereqs:
@# Need tox, but don't install the apt version unless we have to (don't want to conflict with pip)
@which tox >/dev/null || (sudo pip install tox)
@sudo apt-get install -y python-pip python-flake8 python3-flake8 flake8
.PHONY: lint
lint: apt_prereqs
@tox --notest
@flake8 $(wildcard hooks reactive lib unit_tests tests)
@charm proof
.PHONY: unit_test
unit_test: apt_prereqs
@echo Starting tests...
tox
...@@ -441,7 +441,6 @@ def addons_ready(): ...@@ -441,7 +441,6 @@ def addons_ready():
return False return False
@when('loadbalancer.available', 'certificates.ca.available', @when('loadbalancer.available', 'certificates.ca.available',
'certificates.client.cert.available') 'certificates.client.cert.available')
def loadbalancer_kubeconfig(loadbalancer, ca, client): def loadbalancer_kubeconfig(loadbalancer, ca, client):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment