Skip to content

Commit

Permalink
Merge pull request #4670 from ESMCI/fix-black-formatting
Browse files Browse the repository at this point in the history
Fixes black formatting
  • Loading branch information
jedwards4b committed Aug 29, 2024
2 parents af3eab5 + 1be3e4a commit b1e3f8c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions CIME/code_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,14 @@ def _run_pylint(all_files, interactive):
# cmd_options +=",relative-import"

# add init-hook option
cmd_options += ' --init-hook=\'import sys; sys.path.extend(("%s","%s","%s","%s"))\'' % (
os.path.join(cimeroot, "CIME"),
os.path.join(cimeroot, "CIME", "Tools"),
os.path.join(cimeroot, "scripts", "fortran_unit_testing", "python"),
os.path.join(srcroot, "components", "cmeps", "cime_config", "runseq"),
cmd_options += (
' --init-hook=\'import sys; sys.path.extend(("%s","%s","%s","%s"))\''
% (
os.path.join(cimeroot, "CIME"),
os.path.join(cimeroot, "CIME", "Tools"),
os.path.join(cimeroot, "scripts", "fortran_unit_testing", "python"),
os.path.join(srcroot, "components", "cmeps", "cime_config", "runseq"),
)
)

files = " ".join(all_files)
Expand Down

0 comments on commit b1e3f8c

Please sign in to comment.