onnxruntime/tools/python
Scott McKay 885bf3561d
Add tool to fix lines > 120 chars. (#18293)
### Description
<!-- Describe your changes. -->
Helper to run clang-format on lines that are > 120 chars.

We disable clang-format enforcing 120 chars by default because it's
formatting can negatively impact readability. If a developer has not
manually kept a line within the 120 char limit this tool will fix it. It
will leave all other lines alone to honor the formatting the developer
chose.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Help developers fix lint errors. 

Preferred is to use a vertical ruler/guideline in your editor when
actually writing the code.
2023-11-09 10:12:57 +10:00
..
util Add tool to fix lines > 120 chars. (#18293) 2023-11-09 10:12:57 +10:00
__init__.py
check_onnx_model_mobile_usability.py
convert_onnx_models_to_ort.py
create_reduced_build_config.py
dump_ort_model.py
dump_subgraphs.py
example_operator_perf_test.py
find_optimizer_opset_version_updates_required.py Bump linter versions (#18341) 2023-11-08 13:04:40 -08:00
fix_long_lines.py Add tool to fix lines > 120 chars. (#18293) 2023-11-09 10:12:57 +10:00
gen_contrib_doc.py
gen_opkernel_doc.py
gen_ort_mobile_pkg_doc.py
get_submodules.py
onnx2tfevents.py
onnx_test_data_utils.py
ort_test_dir_utils.py
PythonTools.md
remove_initializer_from_input.py
run_adb.py
run_android_emulator.py
run_CIs_for_external_pr.py Add mobile CIs to list run by script for external PRs. (#18094) 2023-11-01 09:25:48 +10:00
sparsify_initializers.py
update_version.py