| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9b9de11 commit 5d15063
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,11 @@ | |||
| 1 | - .PHONY: all clean release force_release | ||
| 1 | + .PHONY: all lint clean release force_release | ||
| 2 | 2 | ||
| 3 | 3 | all: | |
| 4 | 4 | @awk -F: '/^[[:alpha:]].*:/ && !/^all:/ {print $$1}' Makefile | |
| 5 | 5 | ||
| 6 | + lint: | ||
| 7 | + SKIP=black-format pre-commit run --all-files --hook-stage manual | ||
| 8 | + | ||
| 6 | 9 | clean: | |
| 7 | 10 | rm -rf build/ dist/ .eggs/ .tox/ | |
| 8 | 11 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -148,11 +148,8 @@ To lint, and apply automatic code formatting, run: | |||
| 148 | 148 | pre-commit run --all-files | |
| 149 | 149 | ``` | |
| 150 | 150 | ||
| 151 | - Code formatting can also be done by itself by running: | ||
| 152 | - | ||
| 153 | - ``` | ||
| 154 | - black . | ||
| 155 | - ``` | ||
| 151 | + - Linting without modifying code can be done with: `make lint` | ||
| 152 | + - Auto-formatting without other lint checks can be done with: `black .` | ||
| 156 | 153 | ||
| 157 | 154 | To typecheck, run: | |
| 158 | 155 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments