From 6d8b134fe8e69b6a138576b48e5101cb3e396fd0 Mon Sep 17 00:00:00 2001 From: Florian Maas Date: Tue, 16 Jul 2024 16:37:50 +0200 Subject: [PATCH] bump ruff to 0.5.2 --- python/Makefile | 2 +- python/pyproject.toml | 6 +++--- python/tests/test_file_system_handler.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python/Makefile b/python/Makefile index 1a95a95695..8b5e66a69c 100644 --- a/python/Makefile +++ b/python/Makefile @@ -53,7 +53,7 @@ format: ## Format the code $(info --- Rust format ---) cargo fmt $(info --- Python format ---) - ruff . --fix + ruff check . --fix ruff format . .PHONY: check-rust diff --git a/python/pyproject.toml b/python/pyproject.toml index 0c087add1f..dd69669335 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -29,7 +29,7 @@ pandas = [ devel = [ "azure-storage-blob==12.20.0", "mypy~=1.8.0", - "ruff~=0.3.0", + "ruff~=0.5.2", "packaging>=20", "pytest", "pytest-mock", @@ -76,7 +76,7 @@ strict_equality = true include = '\.pyi?$' exclude = "venv" -[tool.ruff] +[tool.ruff.lint] select = [ # pycodestyle error "E", @@ -87,7 +87,7 @@ select = [ ] ignore = ["E501"] -[tool.ruff.isort] +[tool.ruff.lint.isort] known-first-party = ["deltalake"] [tool.pytest.ini_options] diff --git a/python/tests/test_file_system_handler.py b/python/tests/test_file_system_handler.py index 488a880e36..cd57d72dee 100644 --- a/python/tests/test_file_system_handler.py +++ b/python/tests/test_file_system_handler.py @@ -34,7 +34,7 @@ def test_file_info(file_systems, table_data): info = store.get_file_info(file_path) arrow_info = arrow_fs.get_file_info(file_path) - assert type(info) == type(arrow_info) + assert type(info) is type(arrow_info) assert info.path == arrow_info.path assert info.type == arrow_info.type assert info.size == arrow_info.size