Skip to content

Commit c3a4d54

Browse files
committed
Lint
1 parent 4c6f1a7 commit c3a4d54

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

readthedocs/api/v2/views/integrations.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from readthedocs.builds.constants import (
1919
EXTERNAL_VERSION_STATE_CLOSED,
2020
EXTERNAL_VERSION_STATE_OPEN,
21+
LATEST,
2122
)
2223
from readthedocs.core.signals import webhook_bitbucket, webhook_github, webhook_gitlab
2324
from readthedocs.core.views.hooks import (
@@ -505,7 +506,7 @@ def handle_webhook(self):
505506
return None
506507

507508
def _normalize_ref(self, ref):
508-
"Remove `ref/(heads|tags)/` from the reference to match a Version on the db."
509+
"""Remove `ref/(heads|tags)/` from the reference to match a Version on the db."""
509510
pattern = re.compile(r'^refs/(heads|tags)/')
510511
return pattern.sub('', ref)
511512

readthedocs/vcs_support/backends/git.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,9 @@ def clone(self):
195195
try:
196196
code, stdout, stderr = self.run(*cmd)
197197

198-
# TODO: for those VCS providers that don't tell us the `default_branch` of the repository
199-
# in the incoming webhook, we need to get it from the cloned repository itself.
198+
# TODO: for those VCS providers that don't tell us the `default_branch`
199+
# of the repository in the incoming webhook,
200+
# we need to get it from the cloned repository itself.
200201
#
201202
# cmd = ['git', 'symbolic-ref', 'refs/remotes/origin/HEAD']
202203
# _, default_branch, _ = self.run(*cmd)

0 commit comments

Comments
 (0)