Skip to content

Commit

Permalink
Improved breeze messages for initialize-local-virtualenv and static-c…
Browse files Browse the repository at this point in the history
…heck --help (apache#12640)
  • Loading branch information
ecerulm authored Nov 26, 2020
1 parent 3a8c344 commit cf718db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions BREEZE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2029,6 +2029,10 @@ This is the current syntax for `./breeze <./breeze>`_:
'breeze static-check mypy -- --files tests/core.py'
'breeze static-check mypy -- --all-files'
To check all files that differ between you current branch and master run:
'breeze static-check all -- --from-ref $(git merge-base master HEAD) --to-ref HEAD'
You can see all the options by adding --help EXTRA_ARG:
'breeze static-check mypy -- --help'
Expand Down
6 changes: 6 additions & 0 deletions breeze
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ function breeze::initialize_virtualenv() {
echo
if [[ ${OSTYPE} == "darwin"* ]]; then
echo " brew install sqlite mysql postgresql openssl"
echo " export LDFLAGS=\"-L/usr/local/opt/openssl/lib\""
echo " export CPPFLAGS=\"-I/usr/local/opt/openssl/include\""
else
echo " sudo apt install build-essentials python3.6-dev python3.7-dev python3.8-dev python-dev openssl \\"
echo " sqlite sqlite-dev default-libmysqlclient-dev libmysqld-dev postgresql"
Expand Down Expand Up @@ -1863,6 +1865,10 @@ ${FORMATTED_STATIC_CHECKS}
'${CMDNAME} static-check mypy -- --files tests/core.py'
'${CMDNAME} static-check mypy -- --all-files'
To check all files that differ between you current branch and master run:
'${CMDNAME} static-check all -- --from-ref \$(git merge-base master HEAD) --to-ref HEAD'
You can see all the options by adding --help EXTRA_ARG:
'${CMDNAME} static-check mypy -- --help'
Expand Down

0 comments on commit cf718db

Please sign in to comment.