mirror of
https://github.com/langgenius/dify.git
synced 2026-01-13 21:57:48 +08:00
chore: Update PR template lint command (#30533)
This commit is contained in:
parent
c58a093fd1
commit
154abdd915
2
.github/pull_request_template.md
vendored
2
.github/pull_request_template.md
vendored
@ -20,4 +20,4 @@
|
|||||||
- [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
|
- [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
|
||||||
- [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
|
- [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
|
||||||
- [x] I've updated the documentation accordingly.
|
- [x] I've updated the documentation accordingly.
|
||||||
- [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
|
- [x] I ran `make lint` and `make type-check` (backend) and `cd web && npx lint-staged` (frontend) to appease the lint gods
|
||||||
|
|||||||
5
Makefile
5
Makefile
@ -60,9 +60,10 @@ check:
|
|||||||
@echo "✅ Code check complete"
|
@echo "✅ Code check complete"
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@echo "🔧 Running ruff format, check with fixes, and import linter..."
|
@echo "🔧 Running ruff format, check with fixes, import linter, and dotenv-linter..."
|
||||||
@uv run --project api --dev sh -c 'ruff format ./api && ruff check --fix ./api'
|
@uv run --project api --dev sh -c 'ruff format ./api && ruff check --fix ./api'
|
||||||
@uv run --directory api --dev lint-imports
|
@uv run --directory api --dev lint-imports
|
||||||
|
@uv run --project api --dev dotenv-linter ./api/.env.example ./web/.env.example
|
||||||
@echo "✅ Linting complete"
|
@echo "✅ Linting complete"
|
||||||
|
|
||||||
type-check:
|
type-check:
|
||||||
@ -122,7 +123,7 @@ help:
|
|||||||
@echo "Backend Code Quality:"
|
@echo "Backend Code Quality:"
|
||||||
@echo " make format - Format code with ruff"
|
@echo " make format - Format code with ruff"
|
||||||
@echo " make check - Check code with ruff"
|
@echo " make check - Check code with ruff"
|
||||||
@echo " make lint - Format and fix code with ruff"
|
@echo " make lint - Format, fix, and lint code (ruff, imports, dotenv)"
|
||||||
@echo " make type-check - Run type checking with basedpyright"
|
@echo " make type-check - Run type checking with basedpyright"
|
||||||
@echo " make test - Run backend unit tests"
|
@echo " make test - Run backend unit tests"
|
||||||
@echo ""
|
@echo ""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user