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: 0 additions & 2 deletions docs/ext/async_db_session.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from sqlalchemy.ext.asyncio import async_sessionmaker, create_async_engine

async_engine = create_async_engine('数据库连接', future=True)
Expand Down
2 changes: 0 additions & 2 deletions docs/ext/get_db.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from typing import AsyncGenerator

from sqlalchemy.ext.asyncio import async_sessionmaker, create_async_engine
Expand Down
2 changes: 0 additions & 2 deletions sqlalchemy_crud_plus/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from .crud import CRUDPlus as CRUDPlus
from .types import JoinConfig as JoinConfig

Expand Down
2 changes: 0 additions & 2 deletions sqlalchemy_crud_plus/crud.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from datetime import datetime, timezone
from typing import Any, Generic, Sequence, cast

Expand Down
4 changes: 0 additions & 4 deletions sqlalchemy_crud_plus/errors.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


class SQLAlchemyCRUDPlusException(Exception):
def __init__(self, msg: str) -> None:
self.msg = msg
Expand Down
2 changes: 0 additions & 2 deletions sqlalchemy_crud_plus/types.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from __future__ import annotations

from typing import Any, Literal, TypeVar
Expand Down
2 changes: 0 additions & 2 deletions sqlalchemy_crud_plus/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from __future__ import annotations

import warnings
Expand Down
2 changes: 0 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from typing import AsyncGenerator

import pytest
Expand Down
2 changes: 0 additions & 2 deletions tests/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
2 changes: 0 additions & 2 deletions tests/models/basic.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from datetime import datetime

from sqlalchemy import String
Expand Down
2 changes: 0 additions & 2 deletions tests/models/no_relationship.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from sqlalchemy import String
from sqlalchemy.orm import DeclarativeBase, Mapped, MappedAsDataclass, declared_attr, mapped_column

Expand Down
2 changes: 0 additions & 2 deletions tests/models/relationship.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from __future__ import annotations

from sqlalchemy import Column, ForeignKey, Integer, String, Table
Expand Down
2 changes: 0 additions & 2 deletions tests/schemas/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
2 changes: 0 additions & 2 deletions tests/schemas/basic.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from pydantic import BaseModel


Expand Down
2 changes: 0 additions & 2 deletions tests/schemas/relationship.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from pydantic import BaseModel, ConfigDict


Expand Down
2 changes: 0 additions & 2 deletions tests/test_create.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from datetime import datetime

import pytest
Expand Down
2 changes: 0 additions & 2 deletions tests/test_delete.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pytest

from sqlalchemy.ext.asyncio import AsyncSession
Expand Down
2 changes: 0 additions & 2 deletions tests/test_filters.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pytest

from sqlalchemy.ext.asyncio import AsyncSession
Expand Down
2 changes: 0 additions & 2 deletions tests/test_no_relationship.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pytest

from sqlalchemy.engine.row import Row
Expand Down
2 changes: 0 additions & 2 deletions tests/test_pagination.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pytest

from sqlalchemy.ext.asyncio import AsyncSession
Expand Down
2 changes: 0 additions & 2 deletions tests/test_pks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pytest

from sqlalchemy.ext.asyncio import AsyncSession
Expand Down
2 changes: 0 additions & 2 deletions tests/test_relationship.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pytest

from sqlalchemy.ext.asyncio import AsyncSession
Expand Down
2 changes: 0 additions & 2 deletions tests/test_select.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pytest

from sqlalchemy.engine.row import Row
Expand Down
2 changes: 0 additions & 2 deletions tests/test_update.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pytest

from sqlalchemy.ext.asyncio import AsyncSession
Expand Down
2 changes: 0 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pytest

from sqlalchemy import select
Expand Down