Branch: resolve-pylint
Revision: 6e99015823e19ff790c1f2c988e509eddc522352
Author: jabraham17
Merged at: 2026-10-29T19:12:19Z
Link: Resolve many pylint issues by jabraham17 · Pull Request #29591 · chapel-lang/chapel · GitHub
Log Message:
Resolve many pylint issues
Resolves the pylint issues revealed by add CI to check that basic python scripts will work with python 3.5 by jabraham17 · Pull Request #29590 · chapel-lang/chapel · GitHub
Many of the changes in this PR are pretty superfluous and just make the linter happier. However, several key issues where fixed with regards to python backwards compatibility (like removing some uses of f-strings that snuck in
The other big change is moving away from optparse (deprecated in python 3.2) towards the modern argparse library. I also made this change in other directories other than where the lint looks, since its in general a good code quality change
[Reviewed by @benharsh]
Compare: Resolve many pylint issues by jabraham17 · Pull Request #29591 · chapel-lang/chapel · GitHub
Diff:
M util/buildRelease/add_license_to_sources.py
M util/build_configs/build_configs.py
M util/chplenv/chpl_arch.py
M util/chplenv/chpl_atomics.py
M util/chplenv/chpl_aux_filesys.py
M util/chplenv/chpl_bin_subdir.py
M util/chplenv/chpl_comm_ofi_oob.py
M util/chplenv/chpl_comm_substrate.py
M util/chplenv/chpl_compiler.py
M util/chplenv/chpl_cpu.py
M util/chplenv/chpl_gasnet.py
M util/chplenv/chpl_gmp.py
M util/chplenv/chpl_gpu.py
M util/chplenv/chpl_home_utils.py
M util/chplenv/chpl_hwloc.py
M util/chplenv/chpl_hwloc_pci.py
M util/chplenv/chpl_jemalloc.py
M util/chplenv/chpl_lib_pic.py
M util/chplenv/chpl_libfabric.py
M util/chplenv/chpl_llvm.py
M util/chplenv/chpl_locale_model.py
M util/chplenv/chpl_mem.py
M util/chplenv/chpl_mimalloc.py
M util/chplenv/chpl_platform.py
M util/chplenv/chpl_python_version.py
M util/chplenv/chpl_qthreads.py
M util/chplenv/chpl_re2.py
M util/chplenv/chpl_sanitizers.py
M util/chplenv/chpl_tasks.py
M util/chplenv/chpl_unwind.py
M util/chplenv/chplenv.py
M util/chplenv/chplenv_verify.py
M util/chplenv/compile_link_args_utils.py
M util/chplenv/homebrew_utils.py
M util/chplenv/printchplbuilds.py
M util/chplenv/printchplenv.py
M util/chplenv/third-party-pkgs
M util/chplenv/third_party_utils.py
M util/chplenv/utils.py
M util/chpltags
M util/config/compileline.py
M util/config/fixpath.py
M util/config/gen-chpl-env-header.py
M util/config/make_sys_basic_types.py
M util/config/replace-paths.py
M util/config/update-if-different
M util/config/update-release-and-version-info
M util/devel/check_scripts
M util/devel/look_for_calls.py
M util/devel/test/comment_perfdat
M util/test/combineCompPerfData
M util/test/convert_start_test_log_to_junit_xml.py
M util/test/genGraphs.py
M util/test/send_email.py
https://github.com/chapel-lang/chapel/pull/29591.diff