5.3.1.22.11. cli.pre_commit_scripts.sort_include_lists

Check or fix ordering of includes lists in wscript files.

Entries are ordered by origin: bld.bldnode entries first, local entries second, and bld.srcnode entries last. Paths are sorted component-wise within each origin group.

Functions

extract_path(expression, source_text)

Extract a sortable path from one includes list expression.

main([argv])

Check or fix sorting of includes lists in wscript files.

process_file(file_path, fix)

Check or fix all includes lists in one wscript file.

Exceptions

InvalidWscriptError

Raised when a wscript file cannot be parsed as Python.