forked from alphanome-ai/sec-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
30 lines (25 loc) · 1000 Bytes
/
Taskfile.yml
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
version: '3'
tasks:
unit:
desc: Run unit tests and check code coverage
cmds:
# Recommended coverage viewer in VSCode: https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters
- pytest -s --cov --cov-report=lcov:lcov.info tests/unit/
- coverage report --skip-covered --fail-under=0
lint:
desc: Lint the code
cmds:
- ruff check --fix sec_parser/
- mypy sec_parser/
prepare:
desc: Lint the code and run all checks
deps: [unit, lint]
visualize-output:
desc: Run the parser output visualizer
cmds:
# PYTHONPATH is added to make streamlit watch file changes. Read more: https://docs.streamlit.io/knowledge-base/using-streamlit/streamlit-watch-changes-other-modules-importing-app
- PYTHONPATH=$PYTHONPATH:$(pwd)/sec_parser streamlit run debug_tools/parser_output_visualizer/app.py --server.runOnSave=true
speed:
desc: Run speed tests
cmds:
- python -m tests.e2e.speed.parse