mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-09 14:24:17 +00:00
extend black formatting to tests as well
This commit is contained in:
parent
a7174759e9
commit
af1668bf04
45 changed files with 1644 additions and 1307 deletions
|
|
@ -5,8 +5,8 @@ from flake8.api import legacy
|
|||
def test_legacy_api(tmpdir):
|
||||
"""A basic end-to-end test for the legacy api reporting errors."""
|
||||
with tmpdir.as_cwd():
|
||||
t_py = tmpdir.join('t.py')
|
||||
t_py.write('import os # unused import\n')
|
||||
t_py = tmpdir.join("t.py")
|
||||
t_py.write("import os # unused import\n")
|
||||
|
||||
style_guide = legacy.get_style_guide()
|
||||
report = style_guide.check_files([t_py.strpath])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue