Skip to content
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 .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 0 additions & 2 deletions src/postgres/pool.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down
2 changes: 0 additions & 2 deletions tests/server_test.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ from postgres import (
Connection,
CopyDecoder,
CopyEncoder,
CopyIn,
CopyOut,
OID_INT4,
OID_TEXT,
Params,
Result,
Row,
Statement,
Transaction,
Expand Down
1 change: 0 additions & 1 deletion tests/test_package.mojo
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Loading