File tree Expand file tree Collapse file tree 2 files changed +9
-18
lines changed Expand file tree Collapse file tree 2 files changed +9
-18
lines changed Original file line number Diff line number Diff line change 2
2
PYTHON := python3
3
3
PYTHONPATH := ` pwd `
4
4
# * 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
9
9
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
14
14
15
15
.PHONY : flake8
16
16
flake8 :
17
17
flake8 --version
18
18
flake8 src tests
19
19
20
- .PHONY : format-codestyle
21
- format-codestyle : black flake8
22
-
23
20
.PHONY : pre-commit-install
24
21
pre-commit-install :
25
22
pre-commit install
@@ -36,12 +33,6 @@ test_coverage:
36
33
test_coverage_xml :
37
34
pytest --cov=src --cov-report=xml
38
35
39
- .PHONY : check-codestyle
40
- check-codestyle : black-check flake8
41
-
42
- .PHONY : formatting
43
- formatting : format-codestyle
44
-
45
36
# * Cleaning
46
37
.PHONY : pycache-remove
47
38
pycache-remove :
Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ dependencies = [ # Optional
118
118
# projects.
119
119
[project .optional-dependencies ] # Optional
120
120
dev = [
121
- " black" ,
122
121
" bump2version" ,
123
122
" check-manifest" ,
124
123
" codecov" ,
@@ -127,6 +126,7 @@ dev = [
127
126
" pytest" ,
128
127
" pytest-cov" ,
129
128
" pytest-html" ,
129
+ " ruff" ,
130
130
" tox" ,
131
131
]
132
132
examples = [
You can’t perform that action at this time.
0 commit comments