Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump ruff to 0.5.2 #2673

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -76,7 +76,7 @@ strict_equality = true
include = '\.pyi?$'
exclude = "venv"

[tool.ruff]
[tool.ruff.lint]
select = [
# pycodestyle error
"E",
Expand All @@ -87,7 +87,7 @@ select = [
]
ignore = ["E501"]

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["deltalake"]

[tool.pytest.ini_options]
Expand Down
2 changes: 1 addition & 1 deletion python/tests/test_file_system_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading