Skip to content

Commit 9abc8e3

Browse files
committed
align pre-commit that use Ruff not Black for formatting
see https://github.com/eval-hub/eval-hub-sdk/blob/83c72d0e5c46dfa2801d31b51d4424007a0c805d/.pre-commit-config.yaml#L18-L23 Signed-off-by: tarilabs <matteo.mortari@gmail.com>
1 parent 212a510 commit 9abc8e3

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ name: Pre-commit
1010
# - pre-commit-hooks: v4.5.0
1111
# - ruff-pre-commit: v0.1.6 -> ruff==0.1.6
1212
# - mirrors-mypy: v1.7.1 -> mypy==1.7.1
13-
# - pyproject.toml dev deps: pytest>=7.4.0, black>=23.0.0, etc.
13+
# - pyproject.toml dev deps: pytest>=7.4.0, ruff==0.1.6, etc.
1414

1515
on:
1616
push:
@@ -38,7 +38,6 @@ jobs:
3838
pytest==7.4.0 \
3939
pytest-asyncio==0.21.0 \
4040
pytest-cov==4.1.0 \
41-
black==23.0.0 \
4241
ruff==0.1.6 \
4342
mypy==1.7.1 \
4443
pre-commit==3.4.0

pyproject.toml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ dev = [
6161
"pytest>=7.4.0",
6262
"pytest-asyncio>=0.21.0",
6363
"pytest-cov>=4.1.0",
64-
"black>=23.0.0",
6564
"ruff==0.1.6", # Match ruff-pre-commit v0.1.6
6665
"mypy==1.7.1", # Match mirrors-mypy v1.7.1
6766
"pre-commit>=3.4.0",
@@ -89,25 +88,6 @@ eval-hub = "evalhub.cli:main"
8988
where = ["src"]
9089
include = ["evalhub*"]
9190

92-
[tool.black]
93-
line-length = 88
94-
target-version = ['py310', 'py311', 'py312']
95-
include = '\.pyi?$'
96-
extend-exclude = '''
97-
/(
98-
# Exclude auto-generated files
99-
\.eggs
100-
| \.git
101-
| \.mypy_cache
102-
| \.tox
103-
| \.venv
104-
| _build
105-
| buck-out
106-
| build
107-
| dist
108-
)/
109-
'''
110-
11191
[tool.ruff]
11292
target-version = "py310"
11393
line-length = 88
@@ -120,7 +100,7 @@ select = [
120100
"UP", # pyupgrade
121101
]
122102
ignore = [
123-
"E501", # line too long (handled by black)
103+
"E501", # line too long
124104
]
125105

126106
[tool.ruff.per-file-ignores]

0 commit comments

Comments
 (0)