-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.PHONY: style code-style | ||
|
||
style: code-style docs-style shellcheck ## Perform all style checks | ||
|
||
code-style: ## Check code style for all Python sources from this repository | ||
python3 tools/run_pycodestyle.py | ||
|
||
ruff: ## Run Ruff linter | ||
ruff . | ||
|
||
docs-style: ## Check documentation strings in all Python sources from this repository | ||
pydocstyle . | ||
|
||
help: ## Show this help screen | ||
@echo 'Usage: make <OPTIONS> ... <TARGETS>' | ||
@echo '' | ||
@echo 'Available targets are:' | ||
@echo '' | ||
@grep -E '^[ a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \ | ||
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-35s\033[0m %s\n", $$1, $$2}' | ||
@echo '' |