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/python-code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
python -m pip install poetry poetry-plugin-export
poetry config virtualenvs.create false
poetry install --no-root --with dev
- name: Check code style with black
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry tox
python -m pip install poetry tox poetry-plugin-export
make poetry-export
- name: Lint with ruff
run: make lint
2 changes: 1 addition & 1 deletion .github/workflows/python-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
python -m pip install poetry poetry-plugin-export
poetry config virtualenvs.create false
poetry install --no-root --with dev
- name: Test & publish code coverage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
python -m pip install poetry poetry-plugin-export
poetry config virtualenvs.create false
poetry install --no-root --with dev
- name: Test with pytest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-typing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry tox
python -m pip install poetry tox poetry-plugin-export
make poetry-export
- name: Check typing
run: make typing
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry poetry-dynamic-versioning
python -m pip install poetry poetry-dynamic-versioning poetry-plugin-export

- name: Build package
run: |
Expand Down
2 changes: 1 addition & 1 deletion sqlalchemy_bind_manager/_bind_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(
def __init_bind(self, name: str, config: SQLAlchemyConfig):
if not isinstance(config, SQLAlchemyConfig):
raise InvalidConfigError(
f"Config for bind `{name}` is not a SQLAlchemyConfig" f"object"
f"Config for bind `{name}` is not a SQLAlchemyConfig object"
)

engine_options: dict = config.engine_options or {}
Expand Down
3 changes: 2 additions & 1 deletion sqlalchemy_bind_manager/_repository/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
# DEALINGS IN THE SOFTWARE.

from typing import Generic, List, TypeVar, Union
from uuid import UUID

from pydantic import BaseModel, StrictInt, StrictStr

MODEL = TypeVar("MODEL")
PRIMARY_KEY = Union[str, int, tuple, dict]
PRIMARY_KEY = Union[str, int, tuple, dict, UUID]


class PageInfo(BaseModel):
Expand Down