code_checkerΒΆ

code_checker is a script in CIMEROOT/scripts/Tools.

$ ./code_checker --help
usage: 
code_checker [--verbose]
OR
code_checker --help

EXAMPLES:
    # Check code 
    > code_checker

    # Check code single file case.py 
    # Note, you do NOT have to provide the path to this file, the tool will find it 
    > code_checker case.py

Ensure that all CIME python files are free of errors and follow the PEP8
standard.

positional arguments:
  files                 Restrict checking to specific files. Relative name is
                        fine. (default: None)

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug           Print debug information (very verbose) to file
                        /Users/sacks/cime/scripts/Tools/code_checker.log
                        (default: False)
  -v, --verbose         Add additional context (time and file) to log messages
                        (default: False)
  -s, --silent          Print only warnings and error messages (default:
                        False)
  -j NUM_PROCS, --num-procs NUM_PROCS
                        The number of files to check in parallel (default: 10)