-
Notifications
You must be signed in to change notification settings - Fork 261
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (28 loc) · 776 Bytes
/
Makefile
File metadata and controls
35 lines (28 loc) · 776 Bytes
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
DEFAULT_GOAL := help
PROJECT=bleach
.PHONY: help
help:
@echo "Available rules:"
@fgrep -h "##" Makefile | fgrep -v fgrep | sed 's/\(.*\):.*##/\1: /'
.PHONY: test
test: ## Run tests
tox
.PHONY: docs
docs: ## Build docs
tox -e py310-docs
.PHONY: format
format: ## Format Python files
tox exec -e py310-lint -- ruff format --target-version=py310 --exclude=_vendor setup.py bleach/ tests/ tests_website/
.PHONY: lint
lint: ## Lint files
tox -e py310-lint
.PHONY: vendorverify
vendorverify: ## Verify vendored files
tox -e py310-vendorverify
.PHONY: clean
clean: ## Clean build artifacts
rm -rf build dist ${PROJECT}.egg-info .tox .pytest_cache
rm -rf docs/_build/*
rm -rf .eggs
find . -name __pycache__ | xargs rm -rf
find . -name '*.pyc' | xargs rm -rf