diff --git a/eco_parser/__main__.py b/eco_parser/__main__.py index 87305ea..4854dbe 100644 --- a/eco_parser/__main__.py +++ b/eco_parser/__main__.py @@ -1,5 +1,4 @@ from eco_parser.cli import main - if __name__ == "__main__": main() diff --git a/eco_parser/cli.py b/eco_parser/cli.py index 5176d17..6b77134 100644 --- a/eco_parser/cli.py +++ b/eco_parser/cli.py @@ -1,6 +1,7 @@ import argparse import csv import sys + from eco_parser.parser import EcoParser diff --git a/eco_parser/element_parsers.py b/eco_parser/element_parsers.py index 9f48146..da4d817 100644 --- a/eco_parser/element_parsers.py +++ b/eco_parser/element_parsers.py @@ -1,9 +1,10 @@ import abc + from eco_parser.core import ( NAMESPACES, - get_single_element, - get_child_text, ParseError, + get_child_text, + get_single_element, ) diff --git a/eco_parser/parser.py b/eco_parser/parser.py index 63cbfe2..e7b4111 100644 --- a/eco_parser/parser.py +++ b/eco_parser/parser.py @@ -1,7 +1,9 @@ import re + import requests from lxml import etree -from eco_parser.core import get_single_element, ParseError + +from eco_parser.core import ParseError, get_single_element from eco_parser.element_parsers import ElementParserFactory diff --git a/run_tests.py b/run_tests.py index 9a53c71..98338ae 100755 --- a/run_tests.py +++ b/run_tests.py @@ -4,7 +4,6 @@ import sys import unittest - if __name__ == "__main__": dirname = os.path.dirname(os.path.abspath(__file__)) loader = unittest.TestLoader() diff --git a/setup.py b/setup.py index 41138a9..7d1a110 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ import os + from setuptools import setup # allow setup.py to be run from any path diff --git a/tests/tests.py b/tests/tests.py index e68c2fa..5d79b80 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -1,7 +1,7 @@ import os import unittest -from eco_parser import EcoParser, ParseError +from eco_parser import EcoParser, ParseError SCHEDULE_WITH_TABLE = ( "http://www.legislation.gov.uk/uksi/2017/1067/schedule/1/made/data.xml"