You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Kaxil Naik (JIRA)" <ji...@apache.org> on 2019/08/07 16:25:04 UTC

[jira] [Updated] (AIRFLOW-4003) Extract all example scripts to separate files in doc

     [ https://issues.apache.org/jira/browse/AIRFLOW-4003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kaxil Naik updated AIRFLOW-4003:
--------------------------------
    Fix Version/s:     (was: 1.10.4)
                   2.0.0

> Extract all example scripts to separate files in doc
> ----------------------------------------------------
>
>                 Key: AIRFLOW-4003
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4003
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: documentation
>    Affects Versions: 1.10.2
>            Reporter: Chen Tong
>            Assignee: Chen Tong
>            Priority: Major
>             Fix For: 2.0.0
>
>
> By extracting example python script, we could have unittest on them and make sure correction easily.
>  
> {quote} 
> Files can be stored in the {{airflow/example_dags}} directory or {{airflow/contrib/example_dags}} directory. Files from this directory can be automatically tested to confirm their correctness.
> Example:
> {code}
> .. literalinclude:: ../../airflow/example_dags/example_python_operator.py 
>     :language: python 
>     :start-after: [START howto_operator_python_kwargs] 
>     :end-before: [END howto_operator_python_kwargs] 
> {code}
> Source: [https://raw.githubusercontent.com/apache/airflow/master/docs/howto/operator.rst]
> Other scripts are stored in py files.
> {quote}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)