Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
fix + docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
antonagestam committed Sep 28, 2019
1 parent 1a78664 commit 05d7580
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 6 additions & 1 deletion collectfast/strategies/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from django.core.cache import caches
from django.core.files.storage import Storage
from django.utils.encoding import force_bytes
from storages.utils import safe_join
from typing_extensions import ClassVar

from collectfast import settings
Expand All @@ -36,6 +35,12 @@ def __init__(self, remote_storage):
@abc.abstractmethod
def should_copy_file(self, path, prefixed_path, local_storage):
# type: (str, str, Storage) -> bool
"""
Called for each file before copying happens, this method decides
whether a file should be copied or not. Return False to indicate that
the file is already up-to-date and should not be copied, or True to
indicate that it is stale and needs updating.
"""
...

def pre_should_copy_hook(self):
Expand Down
2 changes: 0 additions & 2 deletions collectfast/tests/test_command.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import warnings

from django.core.management import call_command
from django.test import override_settings as override_django_settings
from django.utils.six import StringIO
Expand Down

0 comments on commit 05d7580

Please sign in to comment.