-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 1015 Bytes
/
Makefile
File metadata and controls
35 lines (25 loc) · 1015 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
.PHONY: install test test-frontend lint typecheck typecheck-frontend format all loc cover
install:
pip install -e ".[dev]"
# -W filter suppresses RequestsDependencyWarning from urllib3/chardet version skew in transitive deps;
# must be on the interpreter to catch import-time warnings before pytest resets filters.
test:
python -W "ignore:urllib3:Warning" -m pytest
test-frontend:
cd src/ananta/explorers/arxiv/frontend && NODE_OPTIONS="--disable-warning=ExperimentalWarning" npx vitest run
lint:
ruff check src tests
typecheck:
mypy src/ananta
typecheck-frontend:
cd src/ananta/explorers/shared_ui/frontend && npx tsc --noEmit
format:
ruff format src tests
ruff check --fix src tests
all: format lint typecheck typecheck-frontend test test-frontend
cover:
pytest --cov=src/ananta --cov-report=term-missing --cov-report=html
loc:
@cloc src arxiv-explorer code-explorer document-explorer examples pyproject.toml Makefile \
--exclude-dir=node_modules,dist \
--not-match-f='package-lock\.json'