-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
55 lines (41 loc) · 788 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
PROJECT=RIS_gravity_inversion
STYLE_CHECK_FILES=.
####
####
# install commands
####
####
install:
pip install -e .
remove:
mamba remove --name $(PROJECT) --all
conda_install:
mamba env create --file environment.yml --name $(PROJECT)
conda_update:
mamba env update --file environment.yml --name $(PROJECT) --prune
####
####
# style commands
####
####
format:
ruff format $(STYLE_CHECK_FILES)
check:
ruff check --fix $(STYLE_CHECK_FILES)
lint:
pre-commit run --all-files
pylint:
pylint $(PROJECT)
style: format check lint
####
####
# chore commands
####
####
clean:
find . -name 'tmp_*.pickle' -delete
# find . -name '*.log' -delete
# find . -name '*.lock' -delete
# find . -name '*.pkl' -delete
# find . -name '*.sqlite3' -delete
# find . -name '*.coverage' -delete