mirror of
https://github.com/YunoHost-Apps/django-for-runners_ynh.git
synced 2024-09-03 18:26:16 +02:00
14 lines
297 B
Python
14 lines
297 B
Python
|
import shutil
|
||
|
import subprocess
|
||
|
from pathlib import Path
|
||
|
|
||
|
|
||
|
BASE_PATH = Path(__file__).parent.parent
|
||
|
|
||
|
|
||
|
def test_lint():
|
||
|
assert Path(BASE_PATH, 'Makefile').is_file()
|
||
|
make_bin = shutil.which('make')
|
||
|
assert make_bin is not None
|
||
|
subprocess.check_call([make_bin, 'lint'], cwd=BASE_PATH)
|