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

ryanahamilton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/master by this push:
     new d77f79d  Add exclusions for new node_modules directory (#14935)
d77f79d is described below

commit d77f79d134e0d14443f75325b24dffed4b779920
Author: Ryan Hamilton <[email protected]>
AuthorDate: Mon Mar 22 11:17:10 2021 -0400

    Add exclusions for new node_modules directory (#14935)
---
 .coveragerc                                 | 1 +
 .dockerignore                               | 3 +++
 scripts/in_container/_in_container_utils.sh | 3 +++
 scripts/in_container/run_pylint.sh          | 1 +
 4 files changed, 8 insertions(+)

diff --git a/.coveragerc b/.coveragerc
index 7d4898e..9da0382 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -24,6 +24,7 @@ omit =
     airflow/migrations/*
     airflow/www/node_modules/**
     airflow/www_rbac/node_modules/**
+    airflow/ui/node_modules/**
 
 [run]
 relative_files = True
diff --git a/.dockerignore b/.dockerignore
index b5a61d3..099097a 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -92,6 +92,9 @@ airflow/www/node_modules
 airflow/www_rbac/static/coverage
 airflow/www_rbac/static/dist
 airflow/www_rbac/node_modules
+# Exclude static ui files generated by NPM
+airflow/ui/build
+airflow/ui/node_modules
 
 # Exclude link to docs
 airflow/www/static/docs
diff --git a/scripts/in_container/_in_container_utils.sh 
b/scripts/in_container/_in_container_utils.sh
index a3c3d0c..d015e1c 100644
--- a/scripts/in_container/_in_container_utils.sh
+++ b/scripts/in_container/_in_container_utils.sh
@@ -107,6 +107,7 @@ function in_container_cleanup_pyc() {
     sudo find . \
         -path "./airflow/www/node_modules" -prune -o \
         -path "./airflow/www_rbac/node_modules" -prune -o \
+        -path "./airflow/ui/node_modules" -prune -o \
         -path "./.eggs" -prune -o \
         -path "./docs/_build" -prune -o \
         -path "./build" -prune -o \
@@ -122,6 +123,7 @@ function in_container_cleanup_pycache() {
     find . \
         -path "./airflow/www/node_modules" -prune -o \
         -path "./airflow/www_rbac/node_modules" -prune -o \
+        -path "./airflow/ui/node_modules" -prune -o \
         -path "./.eggs" -prune -o \
         -path "./docs/_build" -prune -o \
         -path "./build" -prune -o \
@@ -183,6 +185,7 @@ function in_container_refresh_pylint_todo() {
     find . \
         -path "./airflow/www/node_modules" -prune -o \
         -path "./airflow/www_rbac/node_modules" -prune -o \
+        -path "./airflow/ui/node_modules" -prune -o \
         -path "./airflow/migrations/versions" -prune -o \
         -path "./.eggs" -prune -o \
         -path "./docs/_build" -prune -o \
diff --git a/scripts/in_container/run_pylint.sh 
b/scripts/in_container/run_pylint.sh
index f1b8306..136d5f9 100755
--- a/scripts/in_container/run_pylint.sh
+++ b/scripts/in_container/run_pylint.sh
@@ -36,6 +36,7 @@ if [[ ${#@} == "0" ]]; then
     find . \
     -path "./airflow/www/node_modules" -prune -o \
     -path "./airflow/www_rbac/node_modules" -prune -o \
+    -path "./airflow/ui/node_modules" -prune -o \
     -path "./airflow/migrations/versions" -prune -o \
     -path "./.eggs" -prune -o \
     -path "./docs/_build" -prune -o \

Reply via email to