Skip to content

Commit 2bd2028

Browse files
authored
Merge pull request #212 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents f3c9de1 + c3c7c8e commit 2bd2028

File tree

10 files changed

+15
-8
lines changed

10 files changed

+15
-8
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/psf/black
5-
rev: 23.11.0
5+
rev: 24.8.0
66
hooks:
77
- id: black
88
- repo: https://github.com/pycqa/isort
9-
rev: 5.12.0
9+
rev: 5.13.2
1010
hooks:
1111
- id: isort
1212
- repo: https://github.com/pre-commit/pre-commit-hooks
13-
rev: v4.5.0
13+
rev: v4.6.0
1414
hooks:
1515
- id: trailing-whitespace
1616
- id: end-of-file-fixer
1717
- id: check-yaml
1818
- id: check-added-large-files
1919
- repo: https://github.com/asottile/pyupgrade
20-
rev: v3.15.0
20+
rev: v3.17.0
2121
hooks:
2222
- id: pyupgrade
2323
args: [--py38-plus]

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Sphinx config."""
2+
23
#
34
# pytest-factoryboy documentation build configuration file, created by
45
# sphinx-quickstart on Sun Apr 7 21:07:56 2013.

pytest_factoryboy/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""pytest-factoryboy public API."""
2+
23
from .fixture import LazyFixture, named_model, register
34

45
__all__ = ("register", "named_model", "LazyFixture")

pytest_factoryboy/fixture.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Factory boy fixture integration."""
2+
23
from __future__ import annotations
34

45
import contextlib
@@ -80,15 +81,13 @@ def named_model(model_cls: type[T], name: str) -> type[T]:
8081
# @register
8182
# class AuthorFactory(factory.Factory): ...
8283
@overload
83-
def register(factory_class: F, _name: str | None = None, **kwargs: Any) -> F:
84-
...
84+
def register(factory_class: F, _name: str | None = None, **kwargs: Any) -> F: ...
8585

8686

8787
# @register(...)
8888
# class AuthorFactory(factory.Factory): ...
8989
@overload
90-
def register(*, _name: str | None = None, **kwargs: Any) -> Callable[[F], F]:
91-
...
90+
def register(*, _name: str | None = None, **kwargs: Any) -> Callable[[F], F]: ...
9291

9392

9493
def register(

pytest_factoryboy/hooks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""pytest-factoryboy pytest hooks."""
2+
23
from __future__ import annotations
34

45
from typing import TYPE_CHECKING

pytest_factoryboy/plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""pytest-factoryboy plugin."""
2+
23
from __future__ import annotations
34

45
from collections import defaultdict

tests/test_circular.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test circular definitions."""
2+
23
from __future__ import annotations
34

45
from dataclasses import dataclass, field

tests/test_factory_fixtures.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Factory fixtures tests."""
2+
23
from __future__ import annotations
34

45
from dataclasses import dataclass, field

tests/test_lazy_fixture.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test LazyFixture related features."""
2+
23
from __future__ import annotations
34

45
from dataclasses import dataclass

tests/test_postgen_dependencies.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test post-generation dependencies."""
2+
23
from __future__ import annotations
34

45
from dataclasses import dataclass, field

0 commit comments

Comments
 (0)