Skip to content

Commit 7c69e1d

Browse files
Merge pull request #25 from RSS-Engineering/update-pull-request-poetry
Update github action poetry to 1.8
2 parents 1594d84 + 60ab6a9 commit 7c69e1d

File tree

6 files changed

+557
-494
lines changed

6 files changed

+557
-494
lines changed

.github/workflows/pull_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
uses: actions/cache@v3
2828
with:
2929
path: ~/.local
30-
key: poetry-1.3.2
30+
key: poetry-1.8.3
3131
- uses: snok/install-poetry@v1
3232
with:
33-
version: 1.3.2
33+
version: 1.8.3
3434
virtualenvs-create: true
3535
virtualenvs-in-project: true
3636
- name: cache deps

poetry.lock

Lines changed: 382 additions & 401 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pydanticrud/backends/dynamodb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def _to_epoch_decimal(dt: datetime) -> Decimal:
102102

103103
def chunk_list(lst, size):
104104
for i in range(0, len(lst), size):
105-
yield lst[i: i + size]
105+
yield lst[i : i + size]
106106

107107

108108
def index_definition(index_name, keys, gsi=False):
@@ -143,6 +143,7 @@ def type_from_definition(definition_signature: Union[str, dict]) -> dict:
143143
t = definition_signature.split("/")[-1]
144144
return self.definitions[t]
145145
return definition_signature
146+
146147
type_dicts = [type_from_definition(t) for t in possible_types]
147148

148149
return set([(t["type"], t.get("format", "")) for t in type_dicts])

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,21 @@ license = "MIT"
99
python = ">=3.8"
1010
boto3 = "^1.17.112"
1111
rule-engine = "^3.2.0"
12-
pydantic = "^2.5"
12+
pydantic = "^2.5,"
1313
dataclasses = {version = "^0.8", python = "3.6"}
1414

1515
[tool.poetry.dev-dependencies]
1616
pytest = "^6.2.4"
17-
docker = "^5.0.0"
17+
docker = "^7.1.0"
1818
black = "^21.6b0"
1919

20+
[tool.poetry.group.dev.dependencies]
21+
docker = "7.1.0"
22+
2023
[build-system]
2124
requires = ["poetry-core>=1.0.0"]
2225
build-backend = "poetry.core.masonry.api"
2326

2427
[tool.black]
2528
line-length = 100
26-
target-version = ['py36']
29+
target-version = ['py38']

tests/random_values.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def random_datetime():
1515
random.randint(1, 28),
1616
random.randint(1, 12),
1717
random.randint(1, 59),
18-
0
18+
0,
1919
)
2020

2121

0 commit comments

Comments
 (0)