diff --git a/setup.py b/setup.py index a7a59364..ff148ece 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,6 @@ from setuptools import setup from setuptools import find_packages ### Implement Version information -import subprocess import os from vsg import version diff --git a/vsg/__parser__.py b/vsg/__parser__.py index b6341ded..e994c534 100644 --- a/vsg/__parser__.py +++ b/vsg/__parser__.py @@ -2,8 +2,6 @@ import argparse import sys -import os -import glob from . import vhdlFile diff --git a/vsg/rules/after/rule_001.py b/vsg/rules/after/rule_001.py index d32acf22..08bd6ec3 100644 --- a/vsg/rules/after/rule_001.py +++ b/vsg/rules/after/rule_001.py @@ -4,8 +4,6 @@ from vsg import parser from vsg import token from vsg import violation -from vsg.token.ieee.std_logic_1164 import function - from vsg.vhdlFile import utils lIfBoundingTokens = [token.if_statement.if_keyword, token.if_statement.then_keyword] diff --git a/vsg/rules/after/rule_002.py b/vsg/rules/after/rule_002.py index f7243963..1720fd2f 100644 --- a/vsg/rules/after/rule_002.py +++ b/vsg/rules/after/rule_002.py @@ -4,8 +4,6 @@ from vsg import parser from vsg import token from vsg import violation -from vsg.token.ieee.std_logic_1164 import function - from vsg.vhdlFile import utils oStart = token.process_statement.begin_keyword diff --git a/vsg/rules/after/rule_003.py b/vsg/rules/after/rule_003.py index 2dfd81e1..73e38c60 100644 --- a/vsg/rules/after/rule_003.py +++ b/vsg/rules/after/rule_003.py @@ -4,8 +4,6 @@ from vsg import parser from vsg import token from vsg import violation -from vsg.token.ieee.std_logic_1164 import function - from vsg.vhdlFile import utils lIfBoundingTokens = [token.if_statement.if_keyword, token.if_statement.then_keyword] diff --git a/vsg/rules/number_of_lines_between_tokens.py b/vsg/rules/number_of_lines_between_tokens.py index f7334ad2..929964dd 100644 --- a/vsg/rules/number_of_lines_between_tokens.py +++ b/vsg/rules/number_of_lines_between_tokens.py @@ -1,11 +1,8 @@ -from vsg import parser from vsg import rule from vsg import severity from vsg import violation -from vsg.vhdlFile import utils - class number_of_lines_between_tokens(rule.Rule): ''' diff --git a/vsg/rules/process/rule_029.py b/vsg/rules/process/rule_029.py index d1335422..bb49c142 100644 --- a/vsg/rules/process/rule_029.py +++ b/vsg/rules/process/rule_029.py @@ -6,8 +6,6 @@ from vsg import parser from vsg import token from vsg import violation -from vsg.token.ieee.std_logic_1164 import function - from vsg.vhdlFile import utils lIfBoundingTokens = [token.if_statement.if_keyword, token.if_statement.then_keyword] diff --git a/vsg/rules/token_case_n_token_after_tokens_between_tokens.py b/vsg/rules/token_case_n_token_after_tokens_between_tokens.py index 899cd4e6..db36dbfb 100644 --- a/vsg/rules/token_case_n_token_after_tokens_between_tokens.py +++ b/vsg/rules/token_case_n_token_after_tokens_between_tokens.py @@ -1,6 +1,5 @@ from vsg import rule -from vsg import utils from vsg import violation lKeywords = [] diff --git a/vsg/tests/code_tags/test_code_tags.py b/vsg/tests/code_tags/test_code_tags.py index 13c73e09..750a3586 100644 --- a/vsg/tests/code_tags/test_code_tags.py +++ b/vsg/tests/code_tags/test_code_tags.py @@ -6,7 +6,6 @@ from vsg.rules import library from vsg.rules import entity from vsg.rules import port from vsg import vhdlFile -from vsg.tests import utils # Read in test file used for all tests diff --git a/vsg/tests/context/test_main.py b/vsg/tests/context/test_main.py index e6d14f2b..1fbd1014 100644 --- a/vsg/tests/context/test_main.py +++ b/vsg/tests/context/test_main.py @@ -6,12 +6,7 @@ import os import unittest from vsg import __main__ -from vsg import rule_list from vsg import severity -from vsg import vhdlFile -from vsg import parser - -from vsg.tests import utils sFileName = 'context_classification_test_input.vhd' sFixedFileName = 'context_classification_test_input.fixed.vhd' diff --git a/vsg/tests/vhdlFile/test_concurrent_statement.py b/vsg/tests/vhdlFile/test_concurrent_statement.py index fe1885bc..6790d3be 100644 --- a/vsg/tests/vhdlFile/test_concurrent_statement.py +++ b/vsg/tests/vhdlFile/test_concurrent_statement.py @@ -5,9 +5,6 @@ import unittest from vsg import vhdlFile from vsg.tests import utils -from vsg.token import concurrent_procedure_call_statement as token -from vsg.token import procedure_call - sTestDir = os.path.join(os.path.dirname(__file__), 'concurrent_statement') lFile, eError =vhdlFile.utils.read_vhdlfile(os.path.join(sTestDir, 'classification_test_input.vhd')) diff --git a/vsg/tests/vsg/read_configuration_files/test_read_configuration_files_function.py b/vsg/tests/vsg/read_configuration_files/test_read_configuration_files_function.py index a362de04..bc4050d0 100644 --- a/vsg/tests/vsg/read_configuration_files/test_read_configuration_files_function.py +++ b/vsg/tests/vsg/read_configuration_files/test_read_configuration_files_function.py @@ -1,9 +1,6 @@ import unittest -from unittest import mock -import subprocess import os -from vsg.tests import utils from vsg.__main__ import read_configuration_files def get_index_of_dictionary_in_list(lList, sKey): diff --git a/vsg/tests/vsg/test_rc.py b/vsg/tests/vsg/test_rc.py index e33b90d3..1f1395fc 100644 --- a/vsg/tests/vsg/test_rc.py +++ b/vsg/tests/vsg/test_rc.py @@ -1,12 +1,5 @@ import unittest -from unittest import mock import subprocess -import os - -from tempfile import TemporaryFile - -from vsg.tests import utils -from vsg import version class command_line_args(): ''' This is used as an input into the version command.''' diff --git a/vsg/token/range.py b/vsg/token/range.py deleted file mode 100644 index 3988939f..00000000 --- a/vsg/token/range.py +++ /dev/null @@ -1,20 +0,0 @@ - -from vsg import parser - - -class simple_expression(parser.simple_expression): - ''' - unique_id = range : simple_expression - ''' - - def __init__(self, sString): - parser.simple_expression.__init__(self, sString) - - -class direction(parser.direction): - ''' - unique_id = range : direction - ''' - - def __init__(self, sString): - parser.direction.__init__(self, sString) diff --git a/vsg/vhdlFile/classify/file_logical_name.py b/vsg/vhdlFile/classify/file_logical_name.py index bf348702..c16d54a0 100644 --- a/vsg/vhdlFile/classify/file_logical_name.py +++ b/vsg/vhdlFile/classify/file_logical_name.py @@ -1,8 +1,4 @@ -from vsg.token import file_open_information as token - -from vsg.vhdlFile import utils - from vsg.vhdlFile.classify import expression diff --git a/vsg/vhdlFile/extract/get_line_preceeding_line.py b/vsg/vhdlFile/extract/get_line_preceeding_line.py index 4bc6ed57..4179972b 100644 --- a/vsg/vhdlFile/extract/get_line_preceeding_line.py +++ b/vsg/vhdlFile/extract/get_line_preceeding_line.py @@ -4,7 +4,6 @@ from vsg import parser from vsg.vhdlFile.extract import tokens import bisect -import copy def get_line_preceeding_line(iLine, lAllTokens, iNumLines, oTokenMap, bSkipComments=False): diff --git a/vsg/vhdlFile/extract/get_n_tokens_before_and_after_tokens.py b/vsg/vhdlFile/extract/get_n_tokens_before_and_after_tokens.py index 05f92739..7c5a001c 100644 --- a/vsg/vhdlFile/extract/get_n_tokens_before_and_after_tokens.py +++ b/vsg/vhdlFile/extract/get_n_tokens_before_and_after_tokens.py @@ -1,6 +1,4 @@ -from vsg.vhdlFile import vhdlFile as token_class - from vsg.vhdlFile.extract import tokens diff --git a/vsg/vhdlFile/extract/get_tokens_bounded_by_tokens_if_token_is_between_them.py b/vsg/vhdlFile/extract/get_tokens_bounded_by_tokens_if_token_is_between_them.py index 90d974da..d9222d18 100644 --- a/vsg/vhdlFile/extract/get_tokens_bounded_by_tokens_if_token_is_between_them.py +++ b/vsg/vhdlFile/extract/get_tokens_bounded_by_tokens_if_token_is_between_them.py @@ -1,8 +1,5 @@ -from vsg import parser - from vsg.vhdlFile.extract import tokens -from vsg.vhdlFile.extract import utils def get_tokens_bounded_by_tokens_if_token_is_between_them(oStart, oEnd, oToken, lAllObjects, oTokenMap):