-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove black in favor of
ruff format
- Loading branch information
1 parent
936d2af
commit ff233a1
Showing
3 changed files
with
7 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters