Skip to content

Commit 95fb491

Browse files
authored
Upgrade structlog, packaging dependencies (#211)
* chore: update dependencies structlog, packaging * chore: poetry lock * style: reformat with black --------- Co-authored-by: James Harr <[email protected]>
1 parent 36c858d commit 95fb491

File tree

5 files changed

+45
-48
lines changed

5 files changed

+45
-48
lines changed

examples/03-remote-system/diff.py

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class AlphabeticalOrderDiff(Diff):
99
def order_children_default(cls, children):
1010
"""Simple diff to return all children in alphabetical order."""
1111
for child in sorted(children.values()):
12-
1312
# it's possible to access additional information about the object
1413
# like child.action can be "update", "create" or "delete"
1514

examples/03-remote-system/local_adapter.py

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def load(self, filename=COUNTRIES_FILE): # pylint: disable=arguments-differ
4343
# A Country object will be created for each country, it will be stored inside the adapter with self.add(),
4444
# and it will be linked to its parent with parent.add_child(item)
4545
for country in countries:
46-
4746
# Retrive the parent region object from the internal cache.
4847
region = self.get(obj=self.region, identifier=slugify(country.get("region")))
4948

poetry.lock

+42-44
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ include = [
1818
[tool.poetry.dependencies]
1919
python = "^3.7"
2020
pydantic = "^1.7.4,!=1.8,!=1.8.1"
21-
structlog = ">= 20.1.0, < 22.0.0"
22-
packaging = "^21.3"
21+
structlog = ">= 20.1.0, < 23.0.0"
22+
packaging = ">= 21.3, < 24.0"
2323
colorama = {version = "^0.4.3", optional = true}
2424
redis = {version = "^4.3", optional = true}
2525

tests/unit/test_diffsync_model.py

+1
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ class AttrChildOverlap(DiffSyncModel):
358358

359359
def test_diffsync_model_subclass_inheritance():
360360
"""Verify that the class validation works properly even with a hierarchy of subclasses."""
361+
361362
# Pylint would complain because we're not actually using any of the classes declared below
362363
# pylint: disable=unused-variable
363364
class Alpha(DiffSyncModel):

0 commit comments

Comments
 (0)