Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#371)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Dec 5, 2022
1 parent 6bf5144 commit 2fb58ed
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/myint/autoflake
rev: v1.4
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.0
hooks:
- id: autoflake
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']
Expand All @@ -12,15 +12,15 @@ repos:
args: ["--profile", "black", "--filter-files"]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.4.0
hooks:
- id: trailing-whitespace
exclude: ^docs/.*|.*.md
- id: end-of-file-fixer
exclude: ^docs/.*|.*.md

- repo: https://github.com/psf/black
rev: 22.1.0
rev: 22.10.0
hooks:
- id: black
language_version: python3
3 changes: 0 additions & 3 deletions model_subscription/decorators.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
from functools import partial
from typing import Any, Callable, Optional, Type

from django.conf import settings

from model_subscription.constants import OperationType
from model_subscription.mixin import SubscriptionModelMixin
from model_subscription.types import T

__all__ = [
"subscribe",
Expand Down
4 changes: 1 addition & 3 deletions model_subscription/observers.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import threading
from abc import ABC, abstractmethod
from typing import Callable, Dict, List, NoReturn, Tuple, Union, overload

from django.db import models
from typing import overload

from model_subscription.constants import OperationType

Expand Down
3 changes: 0 additions & 3 deletions model_subscription/subscriber.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from abc import ABC, abstractmethod
from typing import Any, Callable, FrozenSet, List, Optional, Tuple, Type, Union

from django.conf import settings
from django.db import models
from django.utils.module_loading import autodiscover_modules

from model_subscription.constants import OperationType
Expand All @@ -12,7 +10,6 @@
BulkUpdateObserver,
CreateObserver,
DeleteObserver,
Observer,
UpdateObserver,
)

Expand Down

0 comments on commit 2fb58ed

Please sign in to comment.