|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
"""Syntax checks"""
|
|
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -34,6 +35,16 @@ def test_pylint(pytestconfig, runner, pylint_version):
|
|
|
|
|
assert run.success
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_isort(pytestconfig, runner, isort_version):
|
|
|
|
|
"""Passes isort"""
|
|
|
|
|
if not pytestconfig.getoption("--force-linters"):
|
|
|
|
|
run = runner(command=['isort', '--version'], report=False)
|
|
|
|
|
if isort_version not in run.out:
|
|
|
|
|
pytest.skip('Unsupported isort version')
|
|
|
|
|
run = runner(command=['isort', '-c', 'test'])
|
|
|
|
|
assert run.success
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_flake8(pytestconfig, runner, flake8_version):
|
|
|
|
|
"""Passes flake8"""
|
|
|
|
|
if not pytestconfig.getoption("--force-linters"):
|
|
|
|
|