forked from open-lasso-python/lasso-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
76 lines (68 loc) · 1.85 KB
/
Taskfile.yml
File metadata and controls
76 lines (68 loc) · 1.85 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:
setup:
desc: Setup the development environment.
cmds:
- poetry install
lint:
desc: Lints the code and reports on issues.
cmds:
- poetry run black --check lasso
# E501:
# We disable too long lines in ArrayType since the docstrings for arrays
# must be behind the arrays for sphinx, thus lines cannot be shortened.
# Anyhow if you find any way to change feel free to submit a PR.
# E203:
# We ignore E203 since allowing whitespace around ':' makes slicing
# more understandable when doing complex slicing.
# W503:
# Allowing operators such as '+' after a new line instead of putting it
# on the previous one, complex condition chains are more understandable.
- |
poetry run flake8 lasso \
--ignore="E203,W503" \
--per-file-ignores="lasso/dyna/ArrayType.py:E501" \
--show-source \
--statistics \
--count
- poetry run pylint lasso
build:
desc: Builds the python package
cmds:
- poetry build
test:
desc: Runs tests on the code
cmds:
- >
poetry run pytest
--cov=lasso
--cov-report=html
docs:serve:
desc: Serve the documentation locally for development and testing
deps:
- test
- docs:changelog
cmds:
- poetry run mkdocs serve
docs:build:
desc: Build the documentation
deps:
- test
- docs:changelog
cmds:
- poetry run mkdocs build
docs:deploy:
desc: Deploys the docs to GitHub (be careful!)
deps:
- test
- docs:changelog
cmds:
- poetry run mkdocs gh-deploy
docs:changelog:
desc: Generates the changelog
cmds:
- >
poetry run git-changelog .
--output CHANGELOG.md
--style angular
--template angular