-
Notifications
You must be signed in to change notification settings - Fork 15
/
Taskfile.yaml
67 lines (53 loc) · 1.2 KB
/
Taskfile.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# https://taskfile.dev
version: "3"
env:
VIRTUAL_ENV:
sh: echo `pwd`"/.venv"
PATH:
sh: echo `pwd`"/.venv/bin:$PATH"
tasks:
default:
cmds:
- task: test
- task: lint
- task: build
silent: true
install:
cmds:
- poetry install
test:
cmds:
- poetry run pytest --cov=asyncio_gevent
lint:
cmds:
- task: reorder-python-imports
- task: black
- task: flake8
- task: mypy
build:
cmds:
- poetry build
publish:
cmds:
- poetry publish -u __token__
publish:dryRun:
cmds:
- poetry publish --dry-run -u __token__ -p token
flake8:
cmds:
- poetry run flake8 asyncio_gevent tests --count --show-source --exit-zero --max-complexity=10 --max-line-length=120 --statistics
black:
cmds:
- poetry run black --check --verbose asyncio_gevent tests
reorder-python-imports:
cmds:
- find asyncio_gevent tests -type f -name '*.py' -exec poetry run reorder-python-imports {} +;
mypy:
cmds:
- poetry run mypy .
devcontainer:postCreateCommand:
cmds:
- python -m venv .venv
- source .venv/bin/activate
- pip install poetry
- task: install