Back to Moon

Migrate

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

2.3.1782 B
Original Source
yaml
language: 'python'

fileGroups:
  sources:
    - 'flaskr/**/*'
    - 'setup.py'
  tests:
    - 'tests/**/*'

tasks:
  dev:
    command: 'flask run'
    inputs:
      - '@globs(sources)'
    preset: 'server'
  format:
    command: 'black --check .'
    inputs:
      - '@globs(sources)'
      - '@globs(tests)'
      - 'pyproject.toml'
  lint:
    command: 'pylint .'
    inputs:
      - '@globs(sources)'
      - '@globs(tests)'
      - 'pyproject.toml'
      - '.pylintrc'
  test:
    command: 'python -m unittest'
    inputs:
      - '@globs(sources)'
      - '@globs(tests)'
      - 'pyproject.toml'
  typecheck:
    command: 'mypy .'
    inputs:
      - '@globs(sources)'
      - '@globs(tests)'
      - 'mypy.ini'
      - 'pyproject.toml'