Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #371

Merged
merged 2 commits into from
Dec 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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