From 2b10c4dd52718254e5d286f113cd7865a2eedf12 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Wed, 1 May 2024 06:34:15 -0700 Subject: [PATCH] ci: Use `ruff check` in Makefile (#21138) ## Summary `ruff /path/to/file.py` works but is deprecated, and we now recommend `ruff check /path/to/file.py` (to match `ruff format /path/to/file.py`). --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e08e9079361..09447ae7668 100644 --- a/Makefile +++ b/Makefile @@ -60,12 +60,12 @@ spell_fix: ## lint: Run linting on the project. lint lint_package lint_tests: - poetry run ruff docs templates cookbook + poetry run ruff check docs templates cookbook poetry run ruff format docs templates cookbook --diff - poetry run ruff --select I docs templates cookbook + poetry run ruff check --select I docs templates cookbook git grep 'from langchain import' docs/docs templates cookbook | grep -vE 'from langchain import (hub)' && exit 1 || exit 0 ## format: Format the project files. format format_diff: poetry run ruff format docs templates cookbook - poetry run ruff --select I --fix docs templates cookbook + poetry run ruff check --select I --fix docs templates cookbook