Skip to content

Commit

Permalink
Switched from psycopg2 to psycopg3 and fixed Ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Jan 23, 2025
1 parent e34718c commit 4282e89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test = [
"sqlacodegen[sqlmodel]",
"pytest >= 7.4",
"coverage >= 7",
"psycopg2-binary",
"psycopg[binary]",
"mysql-connector-python",
]
sqlmodel = ["sqlmodel >= 0.0.22"]
Expand Down Expand Up @@ -77,7 +77,6 @@ extend-select = [
"UP", # pyupgrade
"W", # pycodestyle warnings
]
src = ["src"]

[tool.mypy]
strict = true
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
def engine(request: FixtureRequest) -> Engine:
dialect = getattr(request, "param", None)
if dialect == "postgresql":
return create_engine("postgresql:///testdb")
return create_engine("postgresql+psycopg:///testdb")
elif dialect == "mysql":
return create_engine("mysql+mysqlconnector://testdb")
else:
Expand Down

0 comments on commit 4282e89

Please sign in to comment.