Skip to content

Commit

Permalink
Update github action poetry to 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinKlaesRackspace committed Sep 19, 2024
1 parent 1594d84 commit ad8b0c8
Show file tree
Hide file tree
Showing 5 changed files with 171 additions and 92 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.local
key: poetry-1.3.2
key: poetry-1.8.3
- uses: snok/install-poetry@v1
with:
version: 1.3.2
version: 1.8.3
virtualenvs-create: true
virtualenvs-in-project: true
- name: cache deps
Expand Down
3 changes: 2 additions & 1 deletion pydanticrud/backends/dynamodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _to_epoch_decimal(dt: datetime) -> Decimal:

def chunk_list(lst, size):
for i in range(0, len(lst), size):
yield lst[i: i + size]
yield lst[i : i + size]


def index_definition(index_name, keys, gsi=False):
Expand Down Expand Up @@ -143,6 +143,7 @@ def type_from_definition(definition_signature: Union[str, dict]) -> dict:
t = definition_signature.split("/")[-1]
return self.definitions[t]
return definition_signature

type_dicts = [type_from_definition(t) for t in possible_types]

return set([(t["type"], t.get("format", "")) for t in type_dicts])
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "MIT"
python = ">=3.8"
boto3 = "^1.17.112"
rule-engine = "^3.2.0"
pydantic = "^2.5"
pydantic = "^2.5,"
dataclasses = {version = "^0.8", python = "3.6"}

[tool.poetry.dev-dependencies]
Expand All @@ -23,4 +23,4 @@ build-backend = "poetry.core.masonry.api"

[tool.black]
line-length = 100
target-version = ['py36']
target-version = ['py38']
2 changes: 1 addition & 1 deletion tests/random_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def random_datetime():
random.randint(1, 28),
random.randint(1, 12),
random.randint(1, 59),
0
0,
)


Expand Down
Loading

0 comments on commit ad8b0c8

Please sign in to comment.