[low priority] Stop using visual indents?
Just so that I can start another holy war ;)
I'm finding it hard to read / edit stanzas that look like this:
cmake:
add_custom_command(OUTPUT ${PYBIND_ADD_LIB_FILES} wrapper.cpp
COMMAND ${AutoPyBind11_generator} -y ${PYBIND_ADD_LIB_YAML_INPUT}
"--module_name" ${PYBIND_ADD_LIB_NAME}
"-g" ${CastXML_EXECUTABLE}
"-o" ${PYBIND_ADD_LIB_DESTINATION}
"-rs" ${PYBIND_ADD_LIB_RESPONSE_PATH}
${DEFAULT_NAMESPACE}
DEPENDS ${PYBIND_ADD_LIB_YAML}
${PYBIND_ADD_LIB_RESPONSE_PATH}
WORKING_DIRECTORY ${PYBIND_ADD_LIB_DESTINATION})
python:
module_file.write(self.opts.common_cpp_body_fmt.format(name=module_name,
forwards="".join(module_data["forwards"]),
init_funs="".join(module_data["init_funs"])
))
My recommendation for Python is to use indentation like what black uses:
https://github.com/psf/black/
For CMake, this looks good? (I'm guessing y'all have a styleguide + linter tool, but I dunno anything TBH)
https://github.com/BlankSpruce/gersemi
Edited by Eric Cousineau