Skip to content

Commit

Permalink
Merge pull request #192 from pytest-dev/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
youtux authored Apr 25, 2023
2 parents 580b578 + e5551ce commit 6ca239a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
Expand All @@ -17,7 +17,7 @@ repos:
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.3.2
hooks:
- id: pyupgrade
args: [--py37-plus]
1 change: 0 additions & 1 deletion pytest_factoryboy/fixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,6 @@ def model_fixture(request: SubRequest, factory_name: str) -> Any:
deferred: list[DeferredFunction] = []

for attr in factory_class._meta.post_declarations.sorted():

decl = factory_class._meta.post_declarations.declarations[attr]

if isinstance(decl, factory.RelatedFactory):
Expand Down

0 comments on commit 6ca239a

Please sign in to comment.