This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 02586e3 Fixes some static check errors (#17432)
02586e3 is described below
commit 02586e3edd3260f2bd2c5ef9c646770d38f50069
Author: Jarek Potiuk <[email protected]>
AuthorDate: Thu Aug 5 08:43:51 2021 +0200
Fixes some static check errors (#17432)
Disabling pre-commit even for a while and usin GitHub to
edit .rst files can have disastrous consequences for the static checks.
This one fixes my own mistakes from 3 PRs (!) after being far too
hasty in adding/merging them.
Will do better next time.
---
airflow/utils/log/file_task_handler.py | 3 ++-
docs/apache-airflow/start/docker.rst | 6 +++---
.../docker-stack/docker-examples/extending/add-providers/Dockerfile | 1 -
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/airflow/utils/log/file_task_handler.py
b/airflow/utils/log/file_task_handler.py
index 2387633..e15e375 100644
--- a/airflow/utils/log/file_task_handler.py
+++ b/airflow/utils/log/file_task_handler.py
@@ -188,7 +188,8 @@ class FileTaskHandler(logging.Handler):
if response.status_code == 403:
log += (
- "*** !!!! Please make sure that all your Airflow
components (e.g. schedulers, webservers and workers) have"
+ "*** !!!! Please make sure that all your Airflow
components (e.g. "
+ "schedulers, webservers and workers) have"
" the same 'secret_key' configured in 'webserver'
section !!!!!\n***"
)
log += (
diff --git a/docs/apache-airflow/start/docker.rst
b/docs/apache-airflow/start/docker.rst
index 18fba43..bc3470d 100644
--- a/docs/apache-airflow/start/docker.rst
+++ b/docs/apache-airflow/start/docker.rst
@@ -86,9 +86,9 @@ Using custom images
When you want to run Airflow locally, you might want to use an extended image,
containing some additional dependencies - for
example you might add new python packages, or upgrade airflow providers to a
later version. This can be done very easily
-by placing a custom Dockerfile alongside your `docker-compose.yaml`. Then you
can use `docker-compose build` command to build your image (you need to
-do it only once). You can also add the `--build` flag to your `docker-compose`
commands to rebuild the images
-on-the-fly when you run other `docker-compose` commands.
+by placing a custom Dockerfile alongside your ``docker-compose.yaml``. Then
you can use ``docker-compose build`` command
+to build your image (you need to do it only once). You can also add the
``--build`` flag to your ``docker-compose`` commands
+to rebuild the images on-the-fly when you run other ``docker-compose``
commands.
Examples of how you can extend the image with custom providers, python
packages,
apt packages and more can be found in :doc:`Building the image
<docker-stack:build>`.
diff --git
a/docs/docker-stack/docker-examples/extending/add-providers/Dockerfile
b/docs/docker-stack/docker-examples/extending/add-providers/Dockerfile
index cdf7a42..b65262f 100644
--- a/docs/docker-stack/docker-examples/extending/add-providers/Dockerfile
+++ b/docs/docker-stack/docker-examples/extending/add-providers/Dockerfile
@@ -18,4 +18,3 @@
FROM apache/airflow:2.1.2
RUN pip install --no-cache-dir apache-airflow-providers-docker==2.1.0
# [END Dockerfile]
-