Skip to content

Commit e69ad52

Browse files
committed
Replace black with ruff
1 parent ed44e6e commit e69ad52

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

Makefile

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,21 @@
22
PYTHON := python3
33
PYTHONPATH := `pwd`
44
#* Formatters
5-
.PHONY: black
6-
black:
7-
black --version
8-
black --config pyproject.toml examples src tests
5+
.PHONY: format
6+
format:
7+
ruff --version
8+
ruff format --config pyproject.toml examples src tests
99

10-
.PHONY: black-check
11-
black-check:
12-
black --version
13-
black --diff --check --config pyproject.toml examples src tests
10+
.PHONY: format-check
11+
format-check:
12+
ruff --version
13+
ruff format --diff --check --config pyproject.toml examples src tests
1414

1515
.PHONY: flake8
1616
flake8:
1717
flake8 --version
1818
flake8 src tests
1919

20-
.PHONY: format-codestyle
21-
format-codestyle: black flake8
22-
2320
.PHONY: pre-commit-install
2421
pre-commit-install:
2522
pre-commit install
@@ -36,12 +33,6 @@ test_coverage:
3633
test_coverage_xml:
3734
pytest --cov=src --cov-report=xml
3835

39-
.PHONY: check-codestyle
40-
check-codestyle: black-check flake8
41-
42-
.PHONY: formatting
43-
formatting: format-codestyle
44-
4536
#* Cleaning
4637
.PHONY: pycache-remove
4738
pycache-remove:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ dependencies = [ # Optional
118118
# projects.
119119
[project.optional-dependencies] # Optional
120120
dev = [
121-
"black",
122121
"bump2version",
123122
"check-manifest",
124123
"codecov",
@@ -127,6 +126,7 @@ dev = [
127126
"pytest",
128127
"pytest-cov",
129128
"pytest-html",
129+
"ruff",
130130
"tox",
131131
]
132132
examples = [

0 commit comments

Comments
 (0)