-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (30 loc) · 793 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (30 loc) · 793 Bytes
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
.PHONY: test
test:
PYTHONPATH=. pytest
requirements:
echo "Generating requirements.txt using current env..."
pip list --not-required --format=freeze > requirements.txt
make conda_env:
echo "Generating environment.yaml using current env..."
conda env export --from-history --no-builds > environment.yaml
cleandoc:
echo "Building docs..."
cd docs && make html
echo "Docs built. Open docs/_build/html/index.html in your browser to view."
makedoc:
echo "Cleaning docs..."
cd docs && make clean
lint:
echo "Linting..."
flake8 traced_v2 --ignore=E501,E722,E731,W503,W504
black traced_v2
ruff traced_v2
isort traced_v2
echo "Linting done."
lint_app:
echo "Linting..."
# flake8 app --ignore=E501,E722,E731,W503,W504
black app
ruff app --fix
isort app
echo "Linting done."