Skip to content

Commit 47333ce

Browse files
committed
Add github actions
1 parent 6dc01f6 commit 47333ce

File tree

12 files changed

+10
-5
lines changed

12 files changed

+10
-5
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

piccolo_conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""This piccolo_conf file is just here so migrations can be made for Piccolo's own internal apps.
1+
"""Piccolo_conf file is just here so migrations can be made for Piccolo's own internal apps.
22
33
For example:
44
@@ -12,6 +12,7 @@
1212

1313
from psqlpy_piccolo import PSQLPyEngine
1414

15+
1516
DB = PSQLPyEngine(
1617
config={
1718
"host": os.environ.get("PG_HOST", "127.0.0.1"),

psqlpy_piccolo/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
from psqlpy_piccolo.engine import PSQLPyEngine
44

5+
56
__all__ = ("PSQLPyEngine",)

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ ignore = [
7171
"FA",
7272
"ANN101",
7373
"ANN102",
74+
"SLF001",
7475
"COM812",
7576
"ISC001",
7677
]

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
Venue,
1818
)
1919

20+
2021
if typing.TYPE_CHECKING:
2122
from piccolo.table import Table
2223

@@ -48,8 +49,7 @@ async def _clean_up() -> None:
4849

4950

5051
class AsyncMock(MagicMock):
51-
"""
52-
Async MagicMock for python 3.7+.
52+
"""Async MagicMock for python 3.7+.
5353
5454
This is a workaround for the fact that MagicMock is not async compatible in
5555
Python 3.7.

tests/test_apps/mega/piccolo_app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from piccolo.conf.apps import AppConfig
44

5+
56
CURRENT_DIRECTORY = os.path.dirname(os.path.abspath(__file__)) # noqa: PTH120, PTH100
67

78

tests/test_apps/mega/tables.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from piccolo.engine.finder import engine_finder
2222
from piccolo.table import Table
2323

24+
2425
engine = engine_finder()
2526

2627

tests/test_apps/music/piccolo_app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from piccolo.conf.apps import AppConfig
44

5+
56
CURRENT_DIRECTORY = os.path.dirname(os.path.abspath(__file__)) # noqa: PTH120, PTH100
67

78

tests/test_apps/music/tables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from __future__ import annotations
2-
32
from enum import Enum
43

54
from piccolo.columns import (
@@ -17,6 +16,7 @@
1716
from piccolo.engine.finder import engine_finder
1817
from piccolo.table import Table
1918

19+
2020
engine = engine_finder()
2121
###############################################################################
2222
# Simple example

tests/test_transaction.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from __future__ import annotations
2-
32
import typing
43

54
import pytest

0 commit comments

Comments
 (0)