From b95ee2495c2debde6dccebc87d0dc47c488e2cc4 Mon Sep 17 00:00:00 2001 From: Marius S <39998+winding-lines@users.noreply.github.com> Date: Wed, 18 Nov 2026 06:01:26 -0800 Subject: [PATCH] customs v0.4.0: no unused imports customs v0.4.0 adds unused-import. 5 unused imports removed. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 2 +- pixi.toml | 5 +++++ src/postgres/pool.mojo | 2 -- tests/server_test.mojo | 2 -- tests/test_package.mojo | 1 - 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5438b4b..a7301cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,7 +80,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: magmalake/customs@v0.3.0 + - uses: magmalake/customs@v0.4.0 # The one check to require: every job above passed or, on a release-only PR, # was skipped in favour of the release job's consumer build. diff --git a/pixi.toml b/pixi.toml index 9495f69..f75a2c4 100644 --- a/pixi.toml +++ b/pixi.toml @@ -131,3 +131,8 @@ mojo-compiler = "==1.2.0" mojo-compiler = ">=1.2.0,<2" libpq = ">=16,<19" threads-mojo = { git = "https://github.com/magmalake/threads.mojo", rev = "f45e780a8de77278c140cee36904e46e93e0ca1c" } + +[tool.customs.lints] +# tests/run_unit.sh builds each unit test on its own; until they share one +# binary, report it without failing. +mojo-build-per-test = "warn" diff --git a/src/postgres/pool.mojo b/src/postgres/pool.mojo index f0338a4..940971a 100644 --- a/src/postgres/pool.mojo +++ b/src/postgres/pool.mojo @@ -153,12 +153,10 @@ from std.time import perf_counter_ns from threads import CondVar, CondVarRef, Mutex, MutexRef from ._ffi import PQTRANS_IDLE, libpq -from .config import ConnectionConfig from .connection import Connection from .sqlstate import ( CONNECTION_DOES_NOT_EXIST, PostgresError, - SQLCLIENT_UNABLE_TO_ESTABLISH, TOO_MANY_CONNECTIONS, ) diff --git a/tests/server_test.mojo b/tests/server_test.mojo index c4afbae..1ae6743 100644 --- a/tests/server_test.mojo +++ b/tests/server_test.mojo @@ -22,12 +22,10 @@ from postgres import ( Connection, CopyDecoder, CopyEncoder, - CopyIn, CopyOut, OID_INT4, OID_TEXT, Params, - Result, Row, Statement, Transaction, diff --git a/tests/test_package.mojo b/tests/test_package.mojo index f7d0b1d..5527cac 100644 --- a/tests/test_package.mojo +++ b/tests/test_package.mojo @@ -1,7 +1,6 @@ """The package parses and imports on both toolchains — the baseline every module-level suite builds on.""" from std.testing import TestSuite, assert_true -import postgres def test_package_imports() raises: