Skip to content

Commit 008b320

Browse files
Merge pull request #82 from stephendonner/flake8-isort
Add flake8-isort; fix exposed errors
2 parents 4452b76 + 3f2030b commit 008b320

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

axe_selenium_python/axe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# License, v. 2.0. If a copy of the MPL was not distributed with this
33
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
44

5-
from os import path
65
import json
6+
from os import path
77

88
_DEFAULT_SCRIPT = path.join(path.dirname(__file__), 'src', 'axe.min.js')
99

axe_selenium_python/tests/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
from datetime import datetime
77

88
import pytest
9-
from py.xml import html
10-
119
from axe_selenium_python import Axe
10+
from py.xml import html
1211

1312
_DEFAULT_SCRIPT = os.path.join(os.path.dirname(__file__), 'src', 'axe.min.js')
1413

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
flake8==3.5.0
2+
flake8-isort==2.5

axe_selenium_python/tests/test_axe.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# You can obtain one at http://mozilla.org/MPL/2.0/.
44

55
from os import path
6+
67
import pytest
78

89

tox.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ commands = flake8 {posargs:.}
2121
[flake8]
2222
ignore = E501
2323

24+
[isort]
25+
default_section = THIRDPARTY
26+
known_first_party = axe-selenium-python
27+
skip = build, .tox
28+
2429
[pytest]
2530
addopts = --verbose --driver=Firefox
2631
base_url = https://web-mozillians-staging.production.paas.mozilla.community

0 commit comments

Comments
 (0)