-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
76 lines (65 loc) · 1.78 KB
/
Taskfile.yaml
File metadata and controls
76 lines (65 loc) · 1.78 KB
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
68
69
70
71
72
73
74
75
76
version: "3"
tasks:
install:
desc: Install dependencies
cmds:
- poetry install
- poetry run pre-commit install
format:
desc: Format the code
cmds:
- python -m poetry run ruff format mpcforces_extractor
lint:
desc: Lint the code
cmds:
- python -m poetry run black --check mpcforces_extractor
- |
python -m poetry run flake8 mpcforces_extractor \
--show-source \
--statistics \
--count
- python -m poetry run ruff check
lint2:
desc: Lint the code with pylint
cmds:
- python -m poetry run black --check mpcforces_extractor
- |
python -m poetry run flake8 mpcforces_extractor \
--show-source \
--statistics \
--count
- python -m poetry run pylint mpcforces_extractor
test:
desc: Run tests
cmds:
- >
python -m poetry run pytest
--cov=mpcforces_extractor
--cov-report=html
run:
desc: Run the application
cmds:
- poetry run python -m mpcforces_extractor.main
app:
desc: Run the application with the frontend
cmds:
- poetry run python -m mpcforces_extractor.app
docs-serve:
desc: Serve the documentation locally with mkdocs. Deploy with mike (will commit)
deps:
- test
cmds:
- python -m poetry run mkdocs build
- python -m poetry run mkdocs serve
docs-deploy:
desc: Push the current version (needs to be changed here on task) to gh-pages
cmds:
- python -m poetry run mike deploy 0.1.7.4 latest --push --update-aliases --allow-empty
build:
desc: Builds the python package
cmds:
- poetry build
api:
desc: Run the API
cmds:
- poetry run uvicorn mpcforces_extractor.visualization.api:app --reload