Skip to content

Commit

Permalink
Merge pull request #3427 from rtfd/humitos/gh/edit-link
Browse files Browse the repository at this point in the history
Fix "Edit in Github" link
  • Loading branch information
ericholscher committed Dec 21, 2017
2 parents e0c5658 + 2508f1b commit b5660a6
Show file tree
Hide file tree
Showing 6 changed files with 209 additions and 135 deletions.
2 changes: 1 addition & 1 deletion .flake8
@@ -1,3 +1,3 @@
[flake8]
ignore = E125,D100,D101,D102,D103,D105,D106,D107,D200,D202,D211,P101,FI15,FI16,FI12,FI11,FI17,FI50,FI53,FI54,MQ101,T000
ignore = E125,D100,D101,D102,D103,D105,D106,D107,D200,D202,D211,D403,P101,FI15,FI16,FI12,FI11,FI17,FI50,FI53,FI54,MQ101,T000
max-line-length = 80
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Expand Up @@ -35,7 +35,7 @@ repos:
- id: yapf
exclude: 'migrations|settings|scripts'
additional_dependencies: ['futures']
args: ['--style=.style.yapf', '--parallel']
args: ['--style=.style.yapf', '--parallel', '--in-place']

- repo: git@github.com:FalconSocial/pre-commit-python-sorter.git
sha: b57843b0b874df1d16eb0bef00b868792cb245c2
Expand All @@ -44,7 +44,7 @@ repos:
args: ['--silent-overwrite']

- repo: git@github.com:humitos/mirrors-docformatter.git
sha: v0.8
sha: v0.0.1
hooks:
- id: docformatter
args: ['--in-place', '--wrap-summaries=80', '--wrap-descriptions=80', '--pre-summary-newline', '--no-blank']
Expand Down
1 change: 1 addition & 0 deletions prospector.yml
Expand Up @@ -40,6 +40,7 @@ pep257:
- D106 # Missing docstring in public nested class

# pydocstyle
- D403 # First word of the first line should be properly capitalized ('Github', not 'GitHub')
- D406 # Section name should end with a newline ('Examples', not 'Examples::')
- D407 # Missing dashed underline after section ('Examples')
- D412 # No blank lines allowed between a section header and its content ('Examples')
Expand Down
1 change: 1 addition & 0 deletions readthedocs/builds/models.py
Expand Up @@ -146,6 +146,7 @@ def commit_name(self):

# If we came that far it's not a special version nor a branch or tag.
# Therefore just return the identifier to make a safe guess.
log.error('TODO: Raise an exception here. Testing what cases it happens')
return self.identifier

def get_absolute_url(self):
Expand Down
1 change: 1 addition & 0 deletions readthedocs/restapi/serializers.py
Expand Up @@ -73,6 +73,7 @@ class Meta(object):
'identifier', 'verbose_name',
'active', 'built',
'downloads',
'type',
)


Expand Down

0 comments on commit b5660a6

Please sign in to comment.