File: Makefile

package info (click to toggle)
backblaze-b2 1.3.8-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,288 kB
  • sloc: python: 10,230; sh: 149; makefile: 40
file content (24 lines) | stat: -rw-r--r-- 772 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
help: ## Show this help.
	@fgrep -h "##" Makefile | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
	@echo ""
	@echo "To see doc options, cd to doc and type \"make\""

.PHONY: setup
setup: ## Set up (to run tests) using your current python environment
setup: ## and enable pre-commit hook for this repo only.
	python -m pip install -r requirements-test.txt
	ln -s $(PWD)/pre-commit.sh .git/hooks/pre-commit || true

.PHONY: test
test:  ## Run unit tests
	./run-unit-tests.sh

.PHONY:
format:	## Format code using yapf
	yapf --verbose --in-place --parallel --recursive --exclude '*eggs/*' .

.PHONY: clean
clean: ## Remove stuff you can regenerate
	rm -rf b2.egg-info build TAGS
	find . -name __pycache__ | xargs rm -rf
	find . -name \*~ -o -name \*.pyc | xargs rm -f