forked from miyakogi/pyppeteer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdodo.py
50 lines (38 loc) · 899 Bytes
/
dodo.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Doit task definitions."""
DOIT_CONFIG = {
'default_tasks': [
'check',
],
'continue': True,
'verbosity': 1,
'num_process': 8,
'par_type': 'thread',
}
def task_flake8():
"""Run flake8 check."""
return {
'actions': ['flake8 setup.py pyppeteer'],
}
def task_mypy():
"""Run mypy check."""
return {
'actions': ['mypy pyppeteer'],
}
def task_pydocstyle():
"""Run docstyle check."""
return {
'actions': ['pydocstyle pyppeteer'],
}
def task_docs():
"""Build sphinx document."""
return {
'actions': ['sphinx-build -q -W -E -j 4 -b html docs docs/_build/html'],
}
def task_check():
"""Run flake8/mypy/pydocstyle/docs tasks."""
return {
'actions': None,
'task_dep': ['flake8', 'mypy', 'pydocstyle', 'docs']
}