Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Latest commit

 

History

History
54 lines (35 loc) · 1.43 KB

app.rst

File metadata and controls

54 lines (35 loc) · 1.43 KB

app

The app block configures a :doc:`Jaffle app </apps/index>` which will be launched in a kernel. The name next to app keyword will be the variable name in the kernel and will be accessed from other configuration blocks. The name must be valid in an IPython kernel.

Example

app "pytest" {
  class  = "jaffle.app.pytest.PyTestRunnerApp"
  kernel = "py_kernel"

  options {
    args = ["-s", "-v", "--color=yes"]

    auto_test = [
      "my_module/tests/test_*.py",
    ]

    auto_test_map {
      "my_module/**/*.py" = "my_module/tests/{}/test_{}.py"
    }
  }
}

Description

  • class (str | required)

    The class name of the Jaffle app. It must begin with the top-level module name. e.g.: "jaffle.app.pytest.PyTestRunnerApp".

  • kernel (str | required)

    The kernel in which the app is instantiated. The specified kernel must be defined in a :doc:`kernel` block.

  • start (str | optional | default: null)

    Python code to be executed just after the app is instanticated in a kernel.

  • logger (:doc:`logger` | optional | default: {})

    The app logger configuration.

  • options (map | optional | default: {})

    options will be passed to the app initializer (__init__() method) as keyword arguments. The format of options depends on each :doc:`app </apps/index>`.