Back to Moon

Scripts

website/docs/__partials__/migrate/python/scripts.mdx

2.2.4682 B
Original Source

The Python ecosystem has support for many task runners such as doit and pypyr. While these are great, they're not as efficient as moon. They do not support granular inputs, smart hashing, incremental caching, and all the other performance benefits that moon provides.

With that being said, you do not have to migrate away from these tools. Instead, you can simply run their commands from within moon tasks. This gives you the best of both worlds.

yaml
language: 'python'

tasks:
  test:
    command: 'doit test'
    inputs:
      - '@globs(sources)'
      - '@globs(tests)'
      - 'pyproject.toml'