Seems like having a more accessible pre-commit hook could help. I run the
following code before every push to github
```bash
function arrow_preflight {
ARROW_PREFLIGHT_DIR=$ARROW_ROOT/cpp/preflight-build
mkdir -p $ARROW_PREFLIGHT_DIR
pushd $ARROW_ROOT/cpp
python build-support/lint_cpp_cli.py src || return
popd
pushd $ARROW_PREFLIGHT_DIR
arrow_cmake
ninja format
ninja lint || return
popd
pushd $ARROW_ROOT/python
flake8 --count pyarrow || return
flake8 --count --config=.flake8.cython pyarrow || return
popd
}
```
[ Full content available at: https://github.com/apache/arrow/pull/2572 ]
This message was relayed via gitbox.apache.org for [email protected]