Skip to content

Commit cc278b5

Browse files
authored
replace black formatter with ruff (kubeflow#1652)
This improves consistency since ruff is already used for linting. Signed-off-by: Jon Burdo <jon@jonburdo.com>
1 parent 0cbee3a commit cc278b5

71 files changed

Lines changed: 179 additions & 565 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

clients/python/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ lint:
9191

9292
.PHONY: tidy
9393
tidy:
94-
poetry run ruff check --fix --unsafe-fixes || true
95-
poetry run black src/mr_openapi
94+
poetry run ruff check --fix --unsafe-fixes --fix-only || true
95+
poetry run ruff format src/mr_openapi
9696

9797
.PHONY: build
9898
build: install tidy

clients/python/poetry.lock

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

clients/python/pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ ray = [
5858
uvloop = "^0.21.0"
5959
pytest-asyncio = "^1.1.0"
6060
requests = "^2.32.2"
61-
black = ">=24.4.2,<26.0.0"
6261
types-python-dateutil = "^2.9.0.20240906"
6362
pytest-html = "^4.1.1"
6463
schemathesis = ">=4.0.3"
@@ -78,9 +77,6 @@ show_missing = true
7877
requires = ["poetry-core"]
7978
build-backend = "poetry.core.masonry.api"
8079

81-
[tool.black]
82-
line-length = 119
83-
8480
[tool.pytest.ini_options]
8581
asyncio_mode = "auto"
8682
markers = [
@@ -91,6 +87,7 @@ markers = [
9187
[tool.ruff]
9288
target-version = "py39"
9389
respect-gitignore = true
90+
line-length = 119
9491

9592
[tool.ruff.lint]
9693
select = [

clients/python/src/mr_openapi/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
Do not edit the class manually.
1414
""" # noqa: E501
1515

16-
1716
__version__ = "1.0.0"
1817

1918
# import apis into sdk package

0 commit comments

Comments
 (0)