Skip to content

Commit

Permalink
Remove black in favor of ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
robertknight committed Feb 10, 2024
1 parent 936d2af commit ff233a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 89 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
.PHONY: qa
qa: checkformat lint typecheck

PYTHON_SRCS=ocrs_models

.PHONY: checkformat
checkformat:
poetry run black --check .
poetry run ruff format --check $(PYTHON_SRCS)

.PHONY: format
format:
poetry run black ocrs_models
poetry run ruff format $(PYTHON_SRCS)

.PHONY: lint
lint:
poetry run ruff ocrs_models
poetry run ruff $(PYTHON_SRCS)

.PHONY: typecheck
typecheck:
poetry run mypy ocrs_models
poetry run mypy $(PYTHON_SRCS)
85 changes: 1 addition & 84 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pylev = "^1.4.0"
onnx = "^1.15.0"

[tool.poetry.group.dev.dependencies]
black = "^24.1.1"
mypy = "^1.8.0"
types-Pillow = "^10.2.0.20240125"
ruff = "^0.2.1"
Expand Down

0 comments on commit ff233a1

Please sign in to comment.