Skip to content

Commit 310848e

Browse files
Update makefile
1 parent cbab25c commit 310848e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ PYDANTIC_VERSION_MAJOR := $(shell poetry run python -c 'import pydantic; print(p
88
TYPING_CMD := type-pydantic-v$(PYDANTIC_VERSION_MAJOR)-openai-v$(OPENAI_VERSION_MAJOR)
99

1010
autoformat:
11-
poetry run black guardrails/ tests/
12-
poetry run isort --atomic guardrails/ tests/
11+
poetry run ruff check guardrails/ tests/ --fix
12+
poetry run ruff format guardrails/ tests/
1313
poetry run docformatter --in-place --recursive guardrails tests
1414

1515
.PHONY: type
@@ -37,9 +37,8 @@ type-pydantic-v2-openai-v1:
3737
rm pyrightconfig.json
3838

3939
lint:
40-
poetry run isort -c guardrails/ tests/
41-
poetry run black guardrails/ tests/ --check
42-
poetry run flake8 guardrails/ tests/
40+
poetry run ruff check guardrails/ tests/
41+
poetry run ruff format guardrails/ tests/ --check
4342

4443
test:
4544
poetry run pytest tests/

0 commit comments

Comments
 (0)