Skip to content

Commit

Permalink
build: use ruff format instead of black
Browse files Browse the repository at this point in the history
Test Plan: - run `make check-fmt`

Reviewers: 

Pull Request: #18
  • Loading branch information
kod-kristoff authored Jan 18, 2024
1 parent a2e0379 commit e74ff35
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-python-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ runs:

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: rye sync --features=ci
run: make install-dev
shell: bash
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ lint:
${INVENV} ruff app

fmt:
${INVENV} black app
${INVENV} ruff format app

.PHONY: check-fmt
check-fmt:
${INVENV} black --check app
${INVENV} ruff format --check app

# type-check the code
.PHONY: type-check
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ build-backend = "hatchling.build"
managed = true
dev-dependencies = [
"watchfiles>=0.21.0",
"black>=23.12.1",
"pytest>=7.4.4",
"mypy>=1.8.0",
"ruff>=0.1.13",
]

[tool.hatch.metadata]
Expand Down
4 changes: 1 addition & 3 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

-e file:.
anyio==4.2.0
black==23.12.1
blinker==1.7.0
click==8.1.7
exceptiongroup==1.2.0
Expand All @@ -22,10 +21,9 @@ markupsafe==2.1.3
mypy==1.8.0
mypy-extensions==1.0.0
packaging==23.2
pathspec==0.12.1
platformdirs==4.1.0
pluggy==1.3.0
pytest==7.4.4
ruff==0.1.13
sniffio==1.3.0
tomli==2.0.1
typing-extensions==4.9.0
Expand Down

0 comments on commit e74ff35

Please sign in to comment.