-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Makefile
31 lines (22 loc) · 909 Bytes
/
Makefile
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
TS=$(shell date +%Y%m%d%H%M)
test:
pytest --cov-report html --cov-report term --cov=nomenklatura tests/
typecheck:
mypy --strict nomenklatura/
check: test typecheck
data/pairs-v2.json:
mkdir -p data/
curl -o data/pairs-v2.json https://data.opensanctions.org/contrib/training/pairs-v2.json
data/pairs-v1.json:
mkdir -p data/
curl -o data/pairs-v1.json https://data.opensanctions.org/contrib/training/pairs-v1.json
train-v2: data/pairs-v2.json
nomenklatura train-v2-matcher data/pairs-v2.json
train-v1: data/pairs-v1.json
nomenklatura train-v1-matcher data/pairs-v1.json
fixtures:
ftm map-csv -i tests/fixtures/donations.csv -o tests/fixtures/donations.frag.ijson tests/fixtures/donations.yml
ftm aggregate -i tests/fixtures/donations.frag.ijson -o tests/fixtures/donations.ijson
rm tests/fixtures/donations.frag.ijson
clean:
rm -rf data/pairs.json textual.log .coverage htmlcov dist build