File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ help :
2+ @echo " Available targets:\n\
3+ clean - remove build files and directories\n \
4+ setup - create mamba developer environment\n \
5+ lint - run code formatters and linters\n \
6+ test - run automated test suite\n \
7+ dist - generate release archives\n \
8+ \n \
9+ Remember to ' mamba activate scyjava-dev' first! "
10+
11+ clean :
12+ bin/clean.sh
13+
14+ setup :
15+ bin/setup.sh
16+
17+ check :
18+ @bin/check.sh
19+
20+ lint : check
21+ bin/lint.sh
22+
23+ test : check
24+ bin/test.sh
25+
26+ dist : check
27+ python -m build
28+
29+ .PHONY : test
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ case " $CONDA_PREFIX " in
4+ * /scyjava-dev)
5+ ;;
6+ * )
7+ echo " Please run 'make setup' and then 'mamba activate scyjava-dev' first."
8+ exit 1
9+ ;;
10+ esac
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ dir=$( dirname " $0 " )
4+ cd " $dir /.."
5+
6+ find . -name __pycache__ -type d | while read d
7+ do rm -rf " $d "
8+ done
9+ rm -rf .pytest_cache build dist src/* .egg-info
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ dir=$( dirname " $0 " )
4+ cd " $dir /.."
5+
6+ black src tests
7+ python -m flake8 src tests
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ dir=$( dirname " $0 " )
4+ cd " $dir /.."
5+
6+ mamba env create -f dev-environment.yml
Original file line number Diff line number Diff line change 11#! /bin/sh
2+
3+ dir=$( dirname " $0 " )
4+ cd " $dir /.."
5+
26python -m pytest tests/ -p no:faulthandler $@
You can’t perform that action at this time.
0 commit comments