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
40 lines (36 loc) · 1.15 KB
/
Taskfile.yml
File metadata and controls
40 lines (36 loc) · 1.15 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
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