ran python-modernize and isort on files mentioned in INCR-387
This commit is contained in:
@@ -2,12 +2,13 @@
|
||||
"""
|
||||
Tests for linters.py
|
||||
"""
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
import textwrap
|
||||
from unittest import TestCase
|
||||
|
||||
from ddt import data, ddt
|
||||
from six.moves import range, zip
|
||||
|
||||
from xsslint.linters import JavaScriptLinter, MakoTemplateLinter, PythonLinter, UnderscoreTemplateLinter
|
||||
from xsslint.reporting import FileResults
|
||||
|
||||
@@ -2,15 +2,16 @@
|
||||
"""
|
||||
Tests for main.py
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re
|
||||
import textwrap
|
||||
from StringIO import StringIO
|
||||
from unittest import TestCase
|
||||
|
||||
import mock
|
||||
|
||||
from xsslint.linters import JavaScriptLinter, MakoTemplateLinter, PythonLinter, UnderscoreTemplateLinter
|
||||
from xsslint.main import _lint, _build_ruleset
|
||||
from xsslint.main import _build_ruleset, _lint
|
||||
from xsslint.reporting import SummaryResults
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from unittest import TestCase
|
||||
|
||||
from ddt import data, ddt
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# Default xsslint config module.
|
||||
from xsslint.linters import JavaScriptLinter, MakoTemplateLinter, PythonLinter, UnderscoreTemplateLinter
|
||||
from __future__ import absolute_import
|
||||
|
||||
from xsslint.linters import JavaScriptLinter, MakoTemplateLinter, PythonLinter, UnderscoreTemplateLinter
|
||||
|
||||
# Define the directories that should be ignored by the script.
|
||||
SKIP_DIRS = (
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
"""
|
||||
Linter classes containing logic for checking various filetypes.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
import ast
|
||||
import os
|
||||
import re
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
"""
|
||||
Utility classes/functions for the XSS Linter.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user