Skip to content

Commit

Permalink
Merge pull request #45 from ESSS/fb-DTWIN-1492-serialchemy-pre-commit
Browse files Browse the repository at this point in the history
Make the environment use the most common pre-commit package to avoid adding two and fix syntax warning
  • Loading branch information
lincrosenbach authored Dec 6, 2023
2 parents 568b733 + 64b9dae commit 87f002b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion environment.devenv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: serialchemy-py{{ PY }}
dependencies:
- black>=19.3b0
- mypy
- pre_commit
- pre-commit
- pytest
- pytest-cov
- pytest-datadir
Expand Down
2 changes: 1 addition & 1 deletion src/serialchemy/_tests/test_nested_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def setup(model, db_session):
def test_custom_serializer(model, serializer_strategy, db_session, data_regression):
serializer_class = (
getEmployeeSerializerNestedModelFields(model)
if serializer_strategy is "NestedModelFields"
if serializer_strategy == "NestedModelFields"
else EmployeeSerializerNestedAttrsFields
)
emp = db_session.query(model.Employee).get(1)
Expand Down

0 comments on commit 87f002b

Please sign in to comment.