Skip to content

Commit

Permalink
revert pylint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Jan 29, 2024
1 parent 1d9975c commit 15ddca2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/fortran_unit_testing/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def parse_command_line(args):

args = CIME.utils.parse_args_and_handle_standard_logging_options(args, parser)
output = Printer(color=args.color)
# pylint: disable=broad-exception-raised

if args.xml_test_list is None and args.test_spec_dir is None:
output.print_error(
"You must specify either --test-spec-dir or --xml-test-list."
Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/CIME/code_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
###############################################################################
def _run_pylint(on_file, interactive):
###############################################################################
pylint = find_executable("pylint")
pylint = find_executable("pylint")

cmd_options = " --disable=I,C,R,logging-not-lazy,wildcard-import,unused-wildcard-import"
cmd_options += ",fixme,broad-except,bare-except,eval-used,exec-used,global-statement"
Expand Down
1 change: 0 additions & 1 deletion scripts/lib/CIME/namelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,6 @@ def shouldRaise(eclass, method, *args, **kw):
if not isinstance(e, eclass):
raise
return
# pylint: disable=broad-exception-raised
raise Exception("Expected exception %s not raised" %
str(eclass))

Expand Down
2 changes: 1 addition & 1 deletion scripts/tests/scripts_regression_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2764,7 +2764,7 @@ def check_for_pylint():
from distutils.spawn import find_executable
pylint = find_executable("pylint")
if pylint is not None:
output = run_cmd_no_fail("pylint --version")
output = run_cmd_no_fail(pylint+" --version")
pylintver = re.search(r"pylint\s+(\d+)[.](\d+)[.](\d+)", output)
major = int(pylintver.group(1))
minor = int(pylintver.group(2))
Expand Down

0 comments on commit 15ddca2

Please sign in to comment.