Skip to content

Commit b457b71

Browse files
Switch from black to ruff format (#162)
`black` is great and mature, but `ruff format` is also great. End of the day, one fewer dependency.
1 parent a41a437 commit b457b71

File tree

4 files changed

+73
-529
lines changed

4 files changed

+73
-529
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ generate: $(BIN)/buf $(BIN)/license-header ## Regenerate code and license header
4040
.PHONY: format
4141
format: install $(BIN)/license-header ## Format code
4242
$(ADD_LICENSE_HEADER)
43-
pipenv run black protovalidate tests
43+
pipenv run ruff format protovalidate tests
4444
pipenv run ruff --fix protovalidate tests
4545

4646
.PHONY: test
@@ -53,14 +53,14 @@ conformance: $(BIN)/protovalidate-conformance generate install ## Run conformanc
5353

5454
.PHONY: lint
5555
lint: install ## Lint code
56-
pipenv run black --check --diff protovalidate tests
56+
pipenv run ruff format --check --diff protovalidate tests
5757
pipenv run mypy protovalidate
5858
pipenv run ruff protovalidate tests
5959
pipenv verify
6060

6161
.PHONY: lint-fix
6262
lint-fix: install ## Lint code
63-
pipenv run black protovalidate tests
63+
pipenv run ruff format protovalidate tests
6464
pipenv run ruff --fix protovalidate tests
6565

6666
.PHONY: install

Pipfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ pytest = "*"
1212
mypy = "*"
1313
ruff = "*"
1414
types-protobuf = "*"
15-
black = "*"
1615
exceptiongroup = "*"
1716
tomli = "*"
1817

0 commit comments

Comments
 (0)