chore(🦾): bump python ruff 0.4.5 -> 0.8.0 (#31001)
Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Maxime Beauchemin <maximebeauchemin@gmail.com>
This commit is contained in:
parent
3aa8f32ca9
commit
1e4098a29e
|
|
@ -75,7 +75,7 @@ repos:
|
|||
- id: helm-docs
|
||||
files: helm
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.4.0
|
||||
rev: v0.8.0
|
||||
hooks:
|
||||
- id: ruff
|
||||
args: [ --fix ]
|
||||
|
|
|
|||
|
|
@ -402,6 +402,7 @@ skipsdist = true
|
|||
[tool.ruff]
|
||||
# Exclude a variety of commonly ignored directories.
|
||||
exclude = [
|
||||
"**/*.ipynb",
|
||||
".bzr",
|
||||
".direnv",
|
||||
".eggs",
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ requests-oauthlib==2.0.0
|
|||
# via google-auth-oauthlib
|
||||
rfc3339-validator==0.1.4
|
||||
# via openapi-schema-validator
|
||||
ruff==0.4.5
|
||||
ruff==0.8.0
|
||||
# via apache-superset
|
||||
s3transfer==0.10.1
|
||||
# via boto3
|
||||
|
|
|
|||
|
|
@ -334,7 +334,9 @@ class SupersetShillelaghAdapter(Adapter):
|
|||
primary_keys = [
|
||||
column for column in list(self._table.primary_key) if column.primary_key
|
||||
]
|
||||
if len(primary_keys) == 1 and primary_keys[0].type.python_type == int:
|
||||
if len(primary_keys) == 1 and isinstance(
|
||||
primary_keys[0].type.python_type, type(int)
|
||||
):
|
||||
self._rowid = primary_keys[0].name
|
||||
|
||||
self.columns = {
|
||||
|
|
|
|||
|
|
@ -1091,7 +1091,7 @@ def test__normalize_prequery_result_type(
|
|||
columns_by_name,
|
||||
)
|
||||
|
||||
assert type(normalized) == type(result)
|
||||
assert isinstance(normalized, type(result))
|
||||
|
||||
if isinstance(normalized, TextClause):
|
||||
assert str(normalized) == str(result)
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ class TestBaseViz(SupersetTestCase):
|
|||
datasource = self.get_datasource_mock()
|
||||
test_viz = viz.BaseViz(datasource, form_data)
|
||||
result = test_viz.get_df(query_obj)
|
||||
assert type(result) == pd.DataFrame
|
||||
assert isinstance(result, pd.DataFrame)
|
||||
assert result.empty
|
||||
|
||||
def test_get_df_handles_dttm_col(self):
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ def test_create_pickle_entry(
|
|||
found_entry = (
|
||||
db.session.query(KeyValueEntry).filter_by(id=created_entry.id).one()
|
||||
)
|
||||
assert type(pickle.loads(found_entry.value)) == type(PICKLE_VALUE)
|
||||
assert isinstance(pickle.loads(found_entry.value), type(PICKLE_VALUE))
|
||||
assert found_entry.created_by_fk == admin_user.id
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue