diff --git a/inventory_provider/juniper.py b/inventory_provider/juniper.py
index ba5300b1d63c33f94f3e76d451dc05bc0e6f3714..ff8672c462d41ed3c04e6ea8c4f40bc5b3ba5c7a 100644
--- a/inventory_provider/juniper.py
+++ b/inventory_provider/juniper.py
@@ -15,7 +15,7 @@ CONFIG_SCHEMA = """<?xml version="1.1" encoding="UTF-8" ?>
     <xs:anyAttribute processContents="skip" />
   </xs:complexType>
 
-  <!-- NOTE: 'unit' content isn't validated -->  
+  <!-- NOTE: 'unit' content isn't validated -->
   <xs:complexType name="juniper-interface">
     <xs:sequence>
         <xs:choice minOccurs="1" maxOccurs="unbounded">
@@ -65,7 +65,7 @@ CONFIG_SCHEMA = """<?xml version="1.1" encoding="UTF-8" ?>
   </xs:element>
 
 </xs:schema>
-"""
+"""  # noqa: E501
 
 UNIT_SCHEMA = """<?xml version="1.1" encoding="UTF-8" ?>
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
@@ -89,7 +89,7 @@ UNIT_SCHEMA = """<?xml version="1.1" encoding="UTF-8" ?>
   </xs:element>
 
 </xs:schema>
-"""
+"""  # noqa: E501
 
 
 def _rpc(hostname, ssh):
diff --git a/test/conftest.py b/test/conftest.py
index 6c7dad1c057af2f82d1fbe0d2450140a1deee720..1b8bf386dfaf2bf9055449ed04710a531bc161a7 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -1,4 +1,3 @@
-import io
 import json
 import os
 import shutil
diff --git a/test/per_router/test_juniper_data.py b/test/per_router/test_juniper_data.py
index de50bfd4ee3a3a7891dca2ecd95af72e386aafd3..6016fe9369836c6f09003d07bfd5c6e75e4ba489 100644
--- a/test/per_router/test_juniper_data.py
+++ b/test/per_router/test_juniper_data.py
@@ -90,4 +90,3 @@ def test_bgp_list(netconf_doc):
 
     routes = list(juniper.list_bgp_routes(netconf_doc))
     jsonschema.validate(routes, schema)
-