Skip to content

Commit 1759354

Browse files
committed
Chore: Remove black and isort, replace with ruff
1 parent 7a19c8b commit 1759354

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

pyproject.toml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ dependencies = [
6363
"sqlalchemy<3,>=2",
6464
]
6565
optional-dependencies.develop = [
66-
"black<25",
67-
"isort<6",
6866
"poethepoet<0.33",
6967
"proselint<0.15",
7068
"pyproject-fmt<2.6",
@@ -95,9 +93,6 @@ entry-points."sqlalchemy.dialects"."postgresql.psycopg_relaxed_async" = "sqlalch
9593
[tool.setuptools.packages]
9694
find = {}
9795

98-
[tool.black]
99-
line-length = 120
100-
10196
[tool.ruff]
10297
line-length = 120
10398
lint.select = [
@@ -131,11 +126,6 @@ lint.select = [
131126
lint.extend-ignore = [ "PD901" ]
132127
lint.per-file-ignores."tests/*" = [ "S101" ] # Use of `assert` detected
133128

134-
[tool.isort]
135-
profile = "black"
136-
line_length = 120
137-
multi_line_output = 3
138-
139129
[tool.pytest.ini_options]
140130
minversion = "2.0"
141131
addopts = "-rsfEX -p pytester --strict-markers --verbosity=3 --cov --cov-report=term-missing --cov-report=xml"
@@ -166,17 +156,15 @@ check = [
166156
]
167157

168158
format = [
169-
{ cmd = "black sqlalchemy_postgresql_relaxed/ tests/" },
170-
{ cmd = "isort sqlalchemy_postgresql_relaxed/ tests/" },
159+
{ cmd = "ruff format ." },
171160
# Configure Ruff not to auto-fix (remove!) unused variables (F841) and `print` statements (T201).
172161
{ cmd = "ruff check --fix --ignore=ERA --ignore=F401 --ignore=F841 --ignore=T20 ." },
173162
{ cmd = "pyproject-fmt pyproject.toml" },
174163
]
175164

176165
lint = [
177166
{ cmd = "ruff check sqlalchemy_postgresql_relaxed/ tests/" },
178-
{ cmd = "black --check sqlalchemy_postgresql_relaxed/ tests/" },
179-
{ cmd = "isort --check sqlalchemy_postgresql_relaxed/ tests/" },
167+
{ cmd = "ruff format --check sqlalchemy_postgresql_relaxed/ tests/" },
180168
{ cmd = "validate-pyproject pyproject.toml" },
181169
{ cmd = "proselint *.rst doc/*.rst" },
182170
# { cmd = "mypy" },

0 commit comments

Comments
 (0)