Skip to content

Commit 0abf943

Browse files
authored
Merge pull request #41 from bbc2/use-ruff-format
Replace Black with `ruff format`
2 parents 14aca90 + 2fc83df commit 0abf943

File tree

3 files changed

+5
-79
lines changed

3 files changed

+5
-79
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ help:
1111
.PHONY: check-format
1212
check-format: ## Check code quality.
1313
ruff check --select I --diff ${python_src}
14-
black --check --diff ${python_src}
14+
ruff format --check --diff ${python_src}
1515

1616
.PHONY: check-lint
1717
check-lint: ## Check code quality.
@@ -28,4 +28,4 @@ check: check-test check-lint check-format ## Check everything.
2828
.PHONY: format
2929
format: ## Format everything.
3030
ruff check --select I --fix ${python_src}
31-
black ${python_src}
31+
ruff format ${python_src}

poetry.lock

Lines changed: 1 addition & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,17 @@ python = "^3.9"
2020
rich = "^13.3.1"
2121

2222
[tool.poetry.group.dev.dependencies]
23-
black = "^24.4.2"
2423
flask = "^3.0.3"
2524
mypy = "^1.0.0"
2625
pytest = "^7.1.2"
2726
ruff = "^0.5.1"
2827
types-beautifulsoup4 = "^4.11.1"
2928

3029
[tool.poetry.scripts]
31-
discolinks = 'discolinks.cli:main'
30+
discolinks = "discolinks.cli:main"
3231

3332
[tool.ruff]
34-
line-length = 100
33+
line-length = 90
3534

3635
[tool.ruff.lint]
3736
select = ["ASYNC", "B", "C4", "E", "F", "N", "Q", "RUF", "W"]

0 commit comments

Comments
 (0)