27 lines
403 B
Python
Executable File
27 lines
403 B
Python
Executable File
#! /usr/bin/env python3
|
|
import sys
|
|
|
|
def task_test():
|
|
return {
|
|
'actions': ['pytest'],
|
|
'verbosity': 2,
|
|
}
|
|
|
|
|
|
def task_migrate():
|
|
return {
|
|
'actions': [f'{sys.executable} -m data.migrate']
|
|
}
|
|
|
|
|
|
def task_force_migrate():
|
|
return {
|
|
'actions': [f'{sys.executable} -m data.migrate --f']
|
|
}
|
|
|
|
|
|
if __name__ == '__main__':
|
|
import doit
|
|
|
|
doit.run(globals())
|