Skip to content

Commit

Permalink
fix: lint by ruff (#201)
Browse files Browse the repository at this point in the history
Signed-off-by: cutecutecat <[email protected]>
  • Loading branch information
cutecutecat authored Mar 6, 2025
1 parent 52511f5 commit 83344d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- ".cargo"
- ".github/workflows/check.yml"
- "crates/**"
- "scripts/**"
- "src/**"
- "tests/**"
- "build.rs"
Expand All @@ -20,6 +21,7 @@ on:
- ".cargo"
- ".github/workflows/check.yml"
- "crates/**"
- "scripts/**"
- "src/**"
- "tests/**"
- "build.rs"
Expand Down
4 changes: 2 additions & 2 deletions scripts/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def create_connection(url, nprob, epsilon):
try:
conn.execute("CREATE EXTENSION IF NOT EXISTS vector")
conn.execute("CREATE EXTENSION IF NOT EXISTS vchord")
except Exception as e:
except Exception:
pass
# Tuning
conn.execute("SET jit=false")
Expand All @@ -67,7 +67,7 @@ def create_connection(url, nprob, epsilon):
conn.execute(f"SET vchordrq.epsilon={epsilon}")
try:
conn.execute(f"SELECT vchordrq_prewarm('{args.name}_embedding_idx'::regclass)")
except Exception as e:
except Exception:
pass
register_vector(conn)
return conn
Expand Down

0 comments on commit 83344d0

Please sign in to comment.