Skip to content
Snippets Groups Projects
Makefile 625 B
SPELLING_PATHS = $(wildcard *.md) docs src
SPELLING_EXCLUDE_FILENAME = .codespell-excludes
SPELLING_IGNORE_WORDS_FILENAME = .codespell-ignore-words


.PHONY: help
help:
	@echo "Supported targets:"
	@echo "    lint            - verify code style"
	@echo "    spelling        - check spelling of text"
	@echo "    style           - apply automatic formatting"
	@echo


.PHONY: lint
lint:
	python3 -m flake8 .


.PHONY: spelling
spelling:
	codespell \
		--exclude-file "$(SPELLING_EXCLUDE_FILENAME)" \
		--ignore-words "$(SPELLING_IGNORE_WORDS_FILENAME)" \
		$(SPELLING_PATHS)

.PHONY: style
style:
	python3 -m isort .
	black .