Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit 009222a

Browse files
committed
Fixing coding standard issues.
1 parent f0c0fff commit 009222a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

esss_fix_format/cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ def main(files_or_directories, check, stdin, commit):
9595
click.secho(error_msg, fg='red')
9696
errors.append(error_msg)
9797

98-
9998
sorter = isort.SortImports(file_contents=new_contents, settings_path=settings_path)
10099
# strangely, if the entire file is skipped by an "isort:skip_file"
101100
# instruction in the docstring, SortImports doesn't even contain an

tests/test_esss_fix_format.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
from esss_fix_format import cli
1515

16+
1617
@pytest.fixture
1718
def sort_cfg_to_tmpdir(tmpdir):
1819
import shutil
@@ -278,11 +279,13 @@ def test_force_parentheses(tmpdir, sort_cfg_to_tmpdir):
278279
)
279280
assert obtained == expected
280281

282+
281283
def test_no_isort_cfg(tmpdir):
282284
filename = tmpdir.join('test.py')
283285
filename.write('import os', 'w')
284286
output = run([str(filename)], expected_exit=1)
285-
output.fnmatch_lines(r'*ERROR .isort.cfg not available in repository (or line_length config < 80).')
287+
output.fnmatch_lines(
288+
r'*ERROR .isort.cfg not available in repository (or line_length config < 80).')
286289

287290

288291
def run(args, expected_exit):

0 commit comments

Comments
 (0)