Skip to content

Commit

Permalink
Switch to ruff format (#14)
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <william@trailofbits.com>
  • Loading branch information
woodruffw authored Dec 13, 2023
1 parent 31b1dbe commit f7b877a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ $(VENV)/pyvenv.cfg: pyproject.toml
.PHONY: lint
lint: $(VENV)/pyvenv.cfg
. $(VENV_BIN)/activate && \
black --preview --check $(ALL_PY_SRCS) && \
ruff format --check $(ALL_PY_SRCS) && \
ruff $(ALL_PY_SRCS) && \
mypy $(PY_MODULE)

.PHONY: reformat
reformat:
reformat: $(VENV)/pyvenv.cfg
. $(VENV_BIN)/activate && \
black --preview $(ALL_PY_SRCS) && \
ruff format $(ALL_PY_SRCS) && \
ruff --fix $(ALL_PY_SRCS)

.PHONY: doc
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ requires-python = ">=3.8"
[project.optional-dependencies]
doc = ["pdoc"]
lint = [
"black >= 22.3.0",
# NOTE: ruff is under active development, so we pin conservatively here
# and let Dependabot periodically perform this update.
"ruff < 0.1.8",
Expand All @@ -40,8 +39,6 @@ Documentation = "https://trailofbits.github.io/sigstore-rekor-types/"
Issues = "https://github.com/trailofbits/sigstore-rekor-types/issues"
Source = "https://github.com/trailofbits/sigstore-rekor-types"

[tool.black]
line-length = 100

[tool.mypy]
allow_redefinition = true
Expand Down

0 comments on commit f7b877a

Please sign in to comment.