Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: use `"""` for multi-line strings instead of tuple syntax which breaks arg parse. Test Plan: ``` ============================= test session starts ============================== platform linux -- Python 3.10.14, pytest-8.1.1, pluggy-1.4.0 -- /home/gnadathur/local/a/pytorch-env/bin/python cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase(PosixPath('/data/users/gnadathur/a/torchtitan/.hypothesis/examples')) benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000) rootdir: /data/users/gnadathur/a/torchtitan configfile: pyproject.toml plugins: hypothesis-6.100.1, benchmark-4.0.0, typeguard-4.2.1, cov-5.0.0, hydra-core-1.3.2 collecting ... collected 6 items test/test_job_config.py::TestJobConfig::test_command_line_args PASSED [ 16%] test/test_job_config.py::TestJobConfig::test_job_config_file PASSED [ 33%] test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist PASSED [ 50%] test/test_job_config.py::TestJobConfig::test_empty_config_file PASSED [ 66%] test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides PASSED [ 83%] test/test_job_config.py::TestJobConfig::test_print_help PASSED [100%] ---------- coverage: platform linux, python 3.10.14-final-0 ---------- Coverage XML written to file coverage.xml ============================= slowest 20 durations ============================= 0.00s call test/test_job_config.py::TestJobConfig::test_print_help 0.00s call test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist 0.00s call test/test_job_config.py::TestJobConfig::test_job_config_file 0.00s call test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides 0.00s call test/test_job_config.py::TestJobConfig::test_empty_config_file 0.00s call test/test_job_config.py::TestJobConfig::test_command_line_args 0.00s setup test/test_job_config.py::TestJobConfig::test_command_line_args 0.00s teardown test/test_job_config.py::TestJobConfig::test_command_line_args 0.00s teardown test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist 0.00s teardown test/test_job_config.py::TestJobConfig::test_job_config_file 0.00s setup test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides 0.00s setup test/test_job_config.py::TestJobConfig::test_job_config_file 0.00s teardown test/test_job_config.py::TestJobConfig::test_print_help 0.00s setup test/test_job_config.py::TestJobConfig::test_job_file_does_not_exist 0.00s setup test/test_job_config.py::TestJobConfig::test_empty_config_file 0.00s setup test/test_job_config.py::TestJobConfig::test_print_help 0.00s teardown test/test_job_config.py::TestJobConfig::test_job_config_file_cmd_overrides 0.00s teardown test/test_job_config.py::TestJobConfig::test_empty_config_file ============================== 6 passed in 0.19s =============================== ```
- Loading branch information