jrmadsen / pyctest

Python bindings of select portions of CMake/CTest package -- enabling generation of CTest test files from Python without a CMake build system
Other
3 stars 1 forks source link

API hard to read #4

Open carterbox opened 5 years ago

carterbox commented 5 years ago

Generally, we follow the PEP8 convention for naming things in Python.

For example:

an_object_instance = ClassName()
a_function_name(foo, bar)

By pyctest doesn't seem to follow any convention. The functions and classes are all randomly either CamelCase or lower_with_underscores. This makes reading calls to the API difficult to read.

jrmadsen commented 5 years ago

Anything with a direct corollary to CMake/CTest follows CamelCase. If not, lower with underscores. I'm hesitant to change the API but I'll take that into consideration.