Skip to content

Commit

Permalink
Upgrade structlog, packaging dependencies (#211)
Browse files Browse the repository at this point in the history
* chore: update dependencies structlog, packaging

* chore: poetry lock

* style: reformat with black

---------

Co-authored-by: James Harr <jharr@internet2.edu>
  • Loading branch information
jamesharr and James Harr committed Mar 3, 2023
1 parent 36c858d commit 95fb491
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 48 deletions.
1 change: 0 additions & 1 deletion examples/03-remote-system/diff.py
Expand Up @@ -9,7 +9,6 @@ class AlphabeticalOrderDiff(Diff):
def order_children_default(cls, children):
"""Simple diff to return all children in alphabetical order."""
for child in sorted(children.values()):

# it's possible to access additional information about the object
# like child.action can be "update", "create" or "delete"

Expand Down
1 change: 0 additions & 1 deletion examples/03-remote-system/local_adapter.py
Expand Up @@ -43,7 +43,6 @@ def load(self, filename=COUNTRIES_FILE): # pylint: disable=arguments-differ
# A Country object will be created for each country, it will be stored inside the adapter with self.add(),
# and it will be linked to its parent with parent.add_child(item)
for country in countries:

# Retrive the parent region object from the internal cache.
region = self.get(obj=self.region, identifier=slugify(country.get("region")))

Expand Down
86 changes: 42 additions & 44 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Expand Up @@ -18,8 +18,8 @@ include = [
[tool.poetry.dependencies]
python = "^3.7"
pydantic = "^1.7.4,!=1.8,!=1.8.1"
structlog = ">= 20.1.0, < 22.0.0"
packaging = "^21.3"
structlog = ">= 20.1.0, < 23.0.0"
packaging = ">= 21.3, < 24.0"
colorama = {version = "^0.4.3", optional = true}
redis = {version = "^4.3", optional = true}

Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_diffsync_model.py
Expand Up @@ -358,6 +358,7 @@ class AttrChildOverlap(DiffSyncModel):

def test_diffsync_model_subclass_inheritance():
"""Verify that the class validation works properly even with a hierarchy of subclasses."""

# Pylint would complain because we're not actually using any of the classes declared below
# pylint: disable=unused-variable
class Alpha(DiffSyncModel):
Expand Down

0 comments on commit 95fb491

Please sign in to comment.