|
7 | 7 | """
|
8 | 8 |
|
9 | 9 | from __future__ import (
|
10 |
| - absolute_import, division, print_function, unicode_literals) |
| 10 | + absolute_import, |
| 11 | + division, |
| 12 | + print_function, |
| 13 | + unicode_literals, |
| 14 | +) |
11 | 15 |
|
12 | 16 | import datetime
|
13 | 17 | import hashlib
|
|
24 | 28 | from django.conf import settings
|
25 | 29 | from django.core.urlresolvers import reverse
|
26 | 30 | from django.db.models import Q
|
27 |
| -from django.utils.translation import ugettext_lazy as _ |
28 | 31 | from django.utils import timezone
|
| 32 | +from django.utils.translation import ugettext_lazy as _ |
29 | 33 | from slumber.exceptions import HttpClientError
|
30 | 34 |
|
31 | 35 | from readthedocs.builds.constants import (
|
32 |
| - BUILD_STATE_BUILDING, BUILD_STATE_CLONING, BUILD_STATE_FINISHED, |
33 |
| - BUILD_STATE_INSTALLING, LATEST, LATEST_VERBOSE_NAME, STABLE_VERBOSE_NAME) |
| 36 | + BUILD_STATE_BUILDING, |
| 37 | + BUILD_STATE_CLONING, |
| 38 | + BUILD_STATE_FINISHED, |
| 39 | + BUILD_STATE_INSTALLING, |
| 40 | + LATEST, |
| 41 | + LATEST_VERBOSE_NAME, |
| 42 | + STABLE_VERBOSE_NAME, |
| 43 | +) |
34 | 44 | from readthedocs.builds.models import APIVersion, Build, Version
|
35 | 45 | from readthedocs.builds.signals import build_complete
|
36 | 46 | from readthedocs.builds.syncers import Syncer
|
37 | 47 | from readthedocs.config import ConfigError
|
38 | 48 | from readthedocs.core.resolver import resolve_path
|
39 |
| -from readthedocs.core.symlink import PublicSymlink, PrivateSymlink |
40 |
| -from readthedocs.core.utils import send_email, broadcast, safe_unlink |
| 49 | +from readthedocs.core.symlink import PrivateSymlink, PublicSymlink |
| 50 | +from readthedocs.core.utils import broadcast, safe_unlink, send_email |
41 | 51 | from readthedocs.doc_builder.config import load_yaml_config
|
42 | 52 | from readthedocs.doc_builder.constants import DOCKER_LIMITS
|
43 | 53 | from readthedocs.doc_builder.environments import (
|
44 |
| - DockerBuildEnvironment, LocalBuildEnvironment) |
| 54 | + DockerBuildEnvironment, |
| 55 | + LocalBuildEnvironment, |
| 56 | +) |
45 | 57 | from readthedocs.doc_builder.exceptions import (
|
46 |
| - BuildEnvironmentError, BuildTimeoutError, ProjectBuildsSkippedError, |
47 |
| - VersionLockedError, YAMLParseError) |
| 58 | + BuildEnvironmentError, |
| 59 | + BuildTimeoutError, |
| 60 | + ProjectBuildsSkippedError, |
| 61 | + VersionLockedError, |
| 62 | + YAMLParseError, |
| 63 | +) |
48 | 64 | from readthedocs.doc_builder.loader import get_builder_class
|
49 | 65 | from readthedocs.doc_builder.python_environments import Conda, Virtualenv
|
50 | 66 | from readthedocs.projects.models import APIProject
|
|
58 | 74 | from .exceptions import RepositoryError
|
59 | 75 | from .models import Domain, ImportedFile, Project
|
60 | 76 | from .signals import (
|
61 |
| - after_build, after_vcs, before_build, before_vcs, files_changed) |
| 77 | + after_build, |
| 78 | + after_vcs, |
| 79 | + before_build, |
| 80 | + before_vcs, |
| 81 | + files_changed, |
| 82 | +) |
62 | 83 |
|
63 | 84 | log = logging.getLogger(__name__)
|
64 | 85 |
|
|
0 commit comments