File: linters.py

package info (click to toggle)
python-qemu-qmp 0.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 564 kB
  • sloc: python: 2,819; makefile: 157; sh: 2
file content (20 lines) | stat: -rw-r--r-- 514 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import subprocess
import sys


class TestLinters:

    def test_flake8(self):
        subprocess.run((sys.executable, "-m", "flake8", "qemu/"), check=True)

    def test_mypy(self):
        subprocess.run((sys.executable, "-m", "mypy", "-p", "qemu"), check=True)

    def test_isort(self):
        subprocess.run(
            (sys.executable, "-m", "isort", "-c", "qemu/"),
            check=True,
        )

    def test_pylint(self):
        subprocess.run((sys.executable, "-m", "pylint", "qemu/"), check=True)