-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (28 loc) · 952 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
SHELL=/bin/bash -O globstar
CONDA_ACTIVATE = source $$(conda info --base)/etc/profile.d/conda.sh ; conda activate ; conda activate
.PHONY: conda-update
conda-update:
($(CONDA_ACTIVATE) base && (conda remove --all -n saturnfs -y || true) && conda create -n saturnfs -y && $(CONDA_ACTIVATE) saturnfs)
conda env update -n saturnfs --file environment.yaml
conda env update -n saturnfs --file environment.test.yaml
.PHONY: lint
lint: black pylint mypy
.PHONY: black
black:
@echo -e '\nChecking formatting with Black/ISort...'
# If you make changes here, also edit .pre-commit-config.yaml to match
black --check --diff ./
isort --check ./
.PHONY: mypy
mypy:
@echo -e '\nLinting with MyPy...'
mypy --config-file mypy.ini ./saturnfs/
.PHONY: pylint
pylint:
@echo -e '\nLinting with PyLint...'
pylint ./saturnfs/
.PHONY: format
format:
@echo -e '\nFormatting with Black/ISort...'
black --line-length 100 --exclude '/(\.vscode)/' ./
isort ./