ci: disallow some common capitalization mistakes (#2472)

* ci: only annotate linux for now

* style: block some common mistakes
This commit is contained in:
Henry Schreiner
2020-09-08 09:26:50 -04:00
committed by GitHub
parent 064a03a49b
commit 37f845a1dc
7 changed files with 16 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ TEST_SUBMODULE(numpy_vectorize, m) {
));
// test_type_selection
// Numpy function which only accepts specific data types
// NumPy function which only accepts specific data types
m.def("selective_func", [](py::array_t<int, py::array::c_style>) { return "Int branch taken."; });
m.def("selective_func", [](py::array_t<float, py::array::c_style>) { return "Float branch taken."; });
m.def("selective_func", [](py::array_t<std::complex<float>, py::array::c_style>) { return "Complex float branch taken."; });