reg-shared-lib 0.0.2__tar.gz → 0.0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/PKG-INFO +1 -1
  2. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/pyproject.toml +3 -0
  3. reg_shared_lib-0.0.3/reg_shared_lib/VERSION +1 -0
  4. reg_shared_lib-0.0.3/reg_shared_lib/__init__.py +2 -0
  5. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/reg_shared_lib/pg/__init__.py +1 -1
  6. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/reg_shared_lib/pg/helpers.py +2 -2
  7. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/reg_shared_lib/pg/repos.py +4 -4
  8. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/reg_shared_lib.egg-info/PKG-INFO +1 -1
  9. reg_shared_lib-0.0.2/reg_shared_lib/VERSION +0 -1
  10. reg_shared_lib-0.0.2/reg_shared_lib/__init__.py +0 -2
  11. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/LICENSE +0 -0
  12. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/README.md +0 -0
  13. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/reg_shared_lib/api.py +0 -0
  14. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/reg_shared_lib/data.py +0 -0
  15. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/reg_shared_lib/di/__init__.py +0 -0
  16. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/reg_shared_lib/di/container.py +0 -0
  17. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/reg_shared_lib/pg/_fake_async_context.py +0 -0
  18. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/reg_shared_lib/pg/base.py +0 -0
  19. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/reg_shared_lib/pg/connection.py +0 -0
  20. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/reg_shared_lib/pg/tests.py +0 -0
  21. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/reg_shared_lib/py.typed +0 -0
  22. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/reg_shared_lib/tests.py +0 -0
  23. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/reg_shared_lib.egg-info/SOURCES.txt +0 -0
  24. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/reg_shared_lib.egg-info/dependency_links.txt +0 -0
  25. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/reg_shared_lib.egg-info/requires.txt +0 -0
  26. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/reg_shared_lib.egg-info/top_level.txt +0 -0
  27. {reg_shared_lib-0.0.2 → reg_shared_lib-0.0.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: reg-shared-lib
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: reg-shared-lib
5
5
  Author-email: belegnar <belegnar@belegnar.ru>
6
6
  License: MIT License
@@ -49,6 +49,9 @@ multi_line_output = 3
49
49
  [tool.black]
50
50
  line-length = 120
51
51
 
52
+ [tool.ruff]
53
+ line-length = 120
54
+
52
55
  [tool.flake8]
53
56
  max-line-length = 120
54
57
  ignore = "F901,E704"
@@ -0,0 +1 @@
1
+ 0.0.3
@@ -0,0 +1,2 @@
1
+ # flake8: noqa
2
+ from . import api, data, di, pg, tests
@@ -1,4 +1,4 @@
1
1
  # flake8: noqa
2
- from . import base, repos
2
+ from . import base, repos, tests
3
3
  from .connection import ConnectionContext, get_connection_url
4
4
  from .helpers import to_dataclass, to_dataclasses
@@ -8,12 +8,12 @@ T = t.TypeVar("T")
8
8
 
9
9
  @t.overload
10
10
  def to_dataclass(cls: type[T], row: sa.Row) -> T:
11
- raise NotImplemented
11
+ raise NotImplementedError
12
12
 
13
13
 
14
14
  @t.overload
15
15
  def to_dataclass(cls: type[T], row: sa.Row | None) -> T | None:
16
- raise NotImplemented
16
+ raise NotImplementedError
17
17
 
18
18
 
19
19
  def to_dataclass(cls: type[T], row: sa.Row | None) -> T | None:
@@ -32,11 +32,11 @@ class AbstractRepo(t.Generic[T]):
32
32
 
33
33
  @t.overload
34
34
  async def create(self, instance: T) -> T:
35
- raise NotImplemented
35
+ raise NotImplementedError
36
36
 
37
37
  @t.overload
38
38
  async def create(self, **kwargs: t.Any) -> T:
39
- raise NotImplemented
39
+ raise NotImplementedError
40
40
 
41
41
  async def create(self, *args: T, **kwargs: t.Any) -> T:
42
42
  instance = self._get_insert_instance(*args, **kwargs)
@@ -47,11 +47,11 @@ class AbstractRepo(t.Generic[T]):
47
47
 
48
48
  @t.overload
49
49
  async def create_or_none(self, instance: T) -> T | None:
50
- raise NotImplemented
50
+ raise NotImplementedError
51
51
 
52
52
  @t.overload
53
53
  async def create_or_none(self, **kwargs: t.Any) -> T | None:
54
- raise NotImplemented
54
+ raise NotImplementedError
55
55
 
56
56
  async def create_or_none(self, *args: T, **kwargs: t.Any) -> T | None:
57
57
  instance = self._get_insert_instance(*args, **kwargs)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: reg-shared-lib
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: reg-shared-lib
5
5
  Author-email: belegnar <belegnar@belegnar.ru>
6
6
  License: MIT License
@@ -1 +0,0 @@
1
- 0.0.2
@@ -1,2 +0,0 @@
1
- # flake8: noqa
2
- from . import api, data, di, pg
File without changes
File without changes
File without changes