Skip to content
Snippets Groups Projects
Commit 73bba44b authored by Tamas Kiss's avatar Tamas Kiss
Browse files

Extend linting test with explicit rcfile path

parent 89385a9d
No related branches found
No related tags found
No related merge requests found
[MASTER] [MASTER]
max-line-length = 119
disable = disable =
missing-module-docstring, missing-module-docstring,
too-few-public-methods too-few-public-methods
from unittest import TestCase from unittest import TestCase
#pylint: disable=missing-class-docstring,missing-function-docstring #pylint: disable=missing-class-docstring,missing-function-docstring
import sys
import pathlib
from pylint import epylint from pylint import epylint
class CodeQualityCase(TestCase): class CodeQualityCase(TestCase):
def setUp(self):
self.vcsroot = pathlib.Path(__file__).parent.parent.absolute()
self.rcfile = self.vcsroot.joinpath('.pylintrc')
def test_source_quality(self): def test_source_quality(self):
self.assertEqual(0, epylint.lint("coffee_bot", ["--fail-under=9.5"])) self.assertEqual(0, epylint.lint("coffee_bot", ["--fail-under=9.5", f"--rcfile={self.rcfile}"]))
def test_test_quality(self): def test_test_quality(self):
self.assertEqual(0, epylint.lint("tests", ["--fail-under=9.5"])) self.assertEqual(0, epylint.lint("tests", ["--fail-under=9.5", f"--rcfile={self.rcfile}"]))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment