diff --git a/tests/linting.py b/tests/linting.py new file mode 100644 index 0000000..137433e --- /dev/null +++ b/tests/linting.py @@ -0,0 +1,18 @@ +import subprocess +from pathlib import Path + + +def test_black(test_folder: Path): + completed_process = subprocess.run( + ["poetry", "run", "black", "--check", str(test_folder.parent)], + check=False, + ) + assert completed_process.returncode == 0 + + +def test_ruff(test_folder: Path): + completed_process = subprocess.run( + ["poetry", "run", "ruff", "check", str(test_folder.parent)], + check=False, + ) + assert completed_process.returncode == 0