You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2020/12/02 23:29:25 UTC

[airflow] 15/33: Improved breeze messages for initialize-local-virtualenv and static-check --help (#12640)

This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 6cdf38ac370646f889b055ac2b22417ceade8344
Author: Ruben Laguna <ru...@gmail.com>
AuthorDate: Thu Nov 26 14:54:23 2020 +0100

    Improved breeze messages for initialize-local-virtualenv and static-check --help (#12640)
    
    (cherry picked from commit cf718dbb9ba64006652ccece08e936fe130fa51b)
---
 BREEZE.rst | 4 ++++
 breeze     | 6 ++++++
 2 files changed, 10 insertions(+)

diff --git a/BREEZE.rst b/BREEZE.rst
index ce7dc6a..2c4bffbe 100644
--- a/BREEZE.rst
+++ b/BREEZE.rst
@@ -1884,6 +1884,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'
diff --git a/breeze b/breeze
index ff5d7cb..0c09046 100755
--- a/breeze
+++ b/breeze
@@ -244,6 +244,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"
@@ -1757,6 +1759,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'