Skip to content

Commit 0e0e78d

Browse files
authored
Merge pull request #61 from passren/0.7.2
0.7.2
2 parents 3a1b24c + 1e00426 commit 0e0e78d

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/run-test.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,10 @@ jobs:
7979
name: SonarCloud
8080
runs-on: ubuntu-latest
8181
steps:
82-
- uses: actions/checkout@v3
82+
- uses: actions/checkout@v4
8383
with:
8484
fetch-depth: 0
8585
- name: SonarCloud Scan
86-
uses: SonarSource/sonarcloud-github-action@master
86+
uses: SonarSource/sonarqube-scan-action@v4.1.0
8787
env:
88-
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
8988
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

pydynamodb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
if TYPE_CHECKING:
77
from .connection import Connection
88

9-
__version__: str = "0.7.1"
9+
__version__: str = "0.7.2"
1010

1111
# Globals https://www.python.org/dev/peps/pep-0249/#globals
1212
apilevel: str = "2.0"

pydynamodb/sqlalchemy_dynamodb/pydynamodb.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from types import ModuleType
2424

2525

26-
def _check_sqla_major_ver():
26+
def _check_sqla_major_ver(): # pragma: no cover
2727
try:
2828
return tuple(int(x) for x in __version__.split("."))[0]
2929
except ValueError | Exception:
@@ -104,13 +104,13 @@ def limit_clause(self, select, **kw):
104104
return " LIMIT " + self.process(select._limit_clause, **kw)
105105
return ""
106106

107-
def visit_insert(self, insert_stmt, **kw):
107+
def visit_insert(self, insert_stmt, **kw): # pragma: no cover
108108
# Compatible design for SQLAlchemy v1 and v2
109109
if _SQLALCHEMY_MAJOR_VERSION < 2:
110110
return self._visit_insert_v1(insert_stmt, **kw)
111111
return self._visit_insert_v2(insert_stmt, None, None, **kw)
112112

113-
def _visit_insert_v1(self, insert_stmt, **kw):
113+
def _visit_insert_v1(self, insert_stmt, **kw): # pragma: no cover
114114
compile_state = insert_stmt._compile_state_factory(insert_stmt, self, **kw)
115115
insert_stmt = compile_state.statement
116116

@@ -211,7 +211,7 @@ def _visit_insert_v1(self, insert_stmt, **kw):
211211

212212
def _visit_insert_v2(
213213
self, insert_stmt, visited_bindparam=None, visiting_cte=None, **kw
214-
):
214+
): # pragma: no cover
215215
compile_state = insert_stmt._compile_state_factory(insert_stmt, self, **kw)
216216
insert_stmt = compile_state.statement
217217

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ sonar.organization=passren
33

44
# This is the name and version displayed in the SonarCloud UI.
55
sonar.projectName=PyDynamoDB
6-
sonar.projectVersion=0.6.*
6+
sonar.projectVersion=0.7.*
77

88

99
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.

0 commit comments

Comments
 (0)