Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/test_python_code_quality.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
"""Test the project's code quality using pylint"""

import logging
import os

from pylint import epylint as lint


def test_python_code_quality() -> None:
"""Run the project's source code through pylint and assert 0 errors should exist"""
command_options = "../python-project-template --disable=C0103"
current_working_directory = os.path.basename(os.getcwd())
command_options = f"../{current_working_directory} --disable=C0103"
(pylint_stdout, pylint_stderr) = lint.py_run(command_options=command_options, return_std=True)
standard_output_data = pylint_stdout.read()
standard_error_data = pylint_stderr.read()
Expand Down