-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtasks.py
More file actions
52 lines (34 loc) · 740 Bytes
/
tasks.py
File metadata and controls
52 lines (34 loc) · 740 Bytes
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
51
52
from invoke import task
@task
def test(c):
c.run("python -m pytest --cov=feste tests/")
@task
def all_lint(c):
lint(c)
type_check(c)
isort(c)
@task
def lint(c):
print("Running flake8...")
c.run("flake8 --show-source --statistics feste examples")
@task
def type_check(c):
print("Running mypy...")
c.run('mypy feste examples')
@task
def isort(c):
print("Running isort...")
c.run('isort -c .')
@task
def docstyle(c):
print("Running pydocstyle...")
c.run('pydocstyle feste')
@task
def isort_fix(c):
c.run('isort feste tests docs examples')
@task
def watch_docs(c):
c.run("sphinx-autobuild docs/source docs/build")
@task
def make_docs(c):
c.run("cd docs; make html")