Skip to content

Conversation

yihong0618
Copy link
Contributor

This patch drop useless python import.

when using some code from duckdb found that, some of python import are useless

so using ruff to static check and drop them(do not touch the warnign which maybe useful)

command:

pip install ruff
ruff check --fix --select F401 .

Copy link
Contributor

@Tishj Tishj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM when CI passes

@duckdb-draftbot duckdb-draftbot marked this pull request as draft March 24, 2025 22:13
@yihong0618 yihong0618 marked this pull request as ready for review March 24, 2025 22:37
@yihong0618
Copy link
Contributor Author

yihong0618 commented Mar 25, 2025

Thanks, LGTM when CI passes

lint fixed will figure out why failed a case today


seems can not change pyi will revert pyi files


update do not touch pyi files


oh finally

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
@yihong0618 yihong0618 force-pushed the hy/drop_useless_python_import branch from 94c7b21 to 7ddc633 Compare March 25, 2025 01:28
@duckdb-draftbot duckdb-draftbot marked this pull request as draft March 25, 2025 02:02
@yihong0618 yihong0618 marked this pull request as ready for review March 25, 2025 02:09
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
@duckdb-draftbot duckdb-draftbot marked this pull request as draft March 25, 2025 03:56
@yihong0618 yihong0618 marked this pull request as ready for review March 25, 2025 03:56
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
@duckdb-draftbot duckdb-draftbot marked this pull request as draft March 25, 2025 04:30
@yihong0618 yihong0618 marked this pull request as ready for review March 25, 2025 04:30
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
@duckdb-draftbot duckdb-draftbot marked this pull request as draft March 25, 2025 06:48
@yihong0618 yihong0618 marked this pull request as ready for review March 25, 2025 06:48
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
@duckdb-draftbot duckdb-draftbot marked this pull request as draft March 25, 2025 08:52
@yihong0618 yihong0618 marked this pull request as ready for review March 25, 2025 08:52
@Mytherin Mytherin merged commit 0cb353b into duckdb:main Mar 25, 2025
50 checks passed
@Mytherin
Copy link
Collaborator

Thanks!

@Mytherin
Copy link
Collaborator

I've ended up reverting this in #16834 - this seems to have broken a bunch of CI jobs and caused other issues. I think the import checker has a bunch of holes that make it not work correctly across Python versions (i.e. some imports are useless on Python 3.11 but required for Python 3.10).

krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 15, 2025
Add storage_version 66 for version 1.3.0 (duckdb/duckdb#16800)
Benchmark runner summary (duckdb/duckdb#16759)
NightlyTests.yml: Inline env variables into build command (duckdb/duckdb#16817)
fix: drop useless python import (duckdb/duckdb#16808)
Regression.yml: Actually checkout proper base.sha commit (duckdb/duckdb#16824)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 15, 2025
Add storage_version 66 for version 1.3.0 (duckdb/duckdb#16800)
Benchmark runner summary (duckdb/duckdb#16759)
NightlyTests.yml: Inline env variables into build command (duckdb/duckdb#16817)
fix: drop useless python import (duckdb/duckdb#16808)
Regression.yml: Actually checkout proper base.sha commit (duckdb/duckdb#16824)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 16, 2025
Add storage_version 66 for version 1.3.0 (duckdb/duckdb#16800)
Benchmark runner summary (duckdb/duckdb#16759)
NightlyTests.yml: Inline env variables into build command (duckdb/duckdb#16817)
fix: drop useless python import (duckdb/duckdb#16808)
Regression.yml: Actually checkout proper base.sha commit (duckdb/duckdb#16824)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 16, 2025
Add storage_version 66 for version 1.3.0 (duckdb/duckdb#16800)
Benchmark runner summary (duckdb/duckdb#16759)
NightlyTests.yml: Inline env variables into build command (duckdb/duckdb#16817)
fix: drop useless python import (duckdb/duckdb#16808)
Regression.yml: Actually checkout proper base.sha commit (duckdb/duckdb#16824)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 16, 2025
Add storage_version 66 for version 1.3.0 (duckdb/duckdb#16800)
Benchmark runner summary (duckdb/duckdb#16759)
NightlyTests.yml: Inline env variables into build command (duckdb/duckdb#16817)
fix: drop useless python import (duckdb/duckdb#16808)
Regression.yml: Actually checkout proper base.sha commit (duckdb/duckdb#16824)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 17, 2025
Add storage_version 66 for version 1.3.0 (duckdb/duckdb#16800)
Benchmark runner summary (duckdb/duckdb#16759)
NightlyTests.yml: Inline env variables into build command (duckdb/duckdb#16817)
fix: drop useless python import (duckdb/duckdb#16808)
Regression.yml: Actually checkout proper base.sha commit (duckdb/duckdb#16824)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants