Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Commit be8fe53

Browse files
authored
Disable PyLint (#205)
Disable PyLint for now, as the new version has breaking changes and requires lot more fixes
1 parent 111a915 commit be8fe53

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

scripts/ci/source_code_static_analysis.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import sys
1010
import multiprocessing
1111

12-
from pylint import lint
1312
from flake8.main import application
1413

1514
from util import get_repo_root
@@ -63,7 +62,8 @@ def _get_ci_py_file_paths(directory):
6362
return [os.path.join(directory, path) for path in os.listdir(directory) if path.endswith(".py")]
6463

6564

66-
def _run_pylint(module_paths, ignored_modules=None, rcfile=None, cpu_count=1):
65+
# Commenting out the entire method, since it is not being used. Uncomment after fixing the breaking PyLint errors
66+
"""def _run_pylint(module_paths, ignored_modules=None, rcfile=None, cpu_count=1):
6767
pylint_opts = []
6868
6969
if ignored_modules:
@@ -86,7 +86,7 @@ def _run_pylint(module_paths, ignored_modules=None, rcfile=None, cpu_count=1):
8686
# 32: Usage error
8787
if se.code != 0:
8888
sys.exit(se.code)
89-
89+
"""
9090

9191
def _run_flake8(module_paths, config_file=None):
9292
flake8_opts = ["--statistics"]
@@ -121,9 +121,10 @@ def main():
121121
rc_file = os.path.join(root_dir, "pylintrc")
122122
config_file = os.path.join(root_dir, ".flake8")
123123

124-
print("\nRunning pylint on extensions...")
125-
_run_pylint(module_paths, ",".join(sdk_modules), rc_file, cpu_count)
126-
print("Pylint OK.\n")
124+
# Disable PyLint for now, as the new version has breaking changes and requires lot more fixes
125+
# print("\nRunning pylint on extensions...")
126+
# _run_pylint(module_paths, ",".join(sdk_modules), rc_file, cpu_count)
127+
# print("Pylint OK.\n")
127128

128129
print("Running flake8 on extensions...")
129130
_run_flake8(module_paths, config_file)

0 commit comments

Comments
 (0)