Skip to content
This repository was archived by the owner on Dec 17, 2019. It is now read-only.

Commit ed4dec5

Browse files
committed
PEP8
1 parent 40380de commit ed4dec5

File tree

19 files changed

+33
-18
lines changed

19 files changed

+33
-18
lines changed

pygithub3/requests/gists/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# -*- encoding: utf-8 -*-
22

3-
from pygithub3.requests.base import Request, ValidationError
3+
from pygithub3.requests.base import Request
44
from pygithub3.resources.gists import Gist
55

6+
67
class List(Request):
78

89
uri = 'users/{user}/gists'

pygithub3/requests/gists/comments.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from pygithub3.requests.base import Request
44
from pygithub3.resources.gists import Comment
55

6+
67
class List(Request):
78

89
uri = 'gists/{gist_id}/comments'

pygithub3/requests/git_data/references.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# -*- encoding: utf-8 -*-
2+
13
from pygithub3.requests.base import Request
24
from pygithub3.resources.git_data import Reference
35

@@ -20,6 +22,7 @@ class Create(Request):
2022
'required': ('ref', 'sha'),
2123
}
2224

25+
2326
class Update(Request):
2427
uri = 'repos/{user}/{repo}/git/refs/{ref}'
2528
resource = Reference

pygithub3/requests/git_data/tags.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# -*- encoding: utf-8 -*-
2+
13
from pygithub3.requests.base import Request
24
from pygithub3.resources.git_data import Tag
35

@@ -6,6 +8,7 @@ class Get(Request):
68
uri = 'repos/{user}/{repo}/git/tags/{sha}'
79
resource = Tag
810

11+
912
class Create(Request):
1013
uri = 'repos/{user}/{repo}/git/tags'
1114
resource = Tag

pygithub3/requests/issues/comments.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#!/usr/bin/env python
21
# -*- encoding: utf-8 -*-
32

4-
from pygithub3.requests.base import Request, ValidationError
3+
from pygithub3.requests.base import Request
54
from pygithub3.resources.issues import Comment
65

6+
77
class List(Request):
88

99
uri = 'repos/{user}/{repo}/issues/{number}/comments'

pygithub3/requests/issues/events.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#!/usr/bin/env python
21
# -*- encoding: utf-8 -*-
32

4-
from pygithub3.requests.base import Request, ValidationError
3+
from pygithub3.requests.base import Request
54
from pygithub3.resources.issues import Event
65

6+
77
class List_by_issue(Request):
88

99
uri = 'repos/{user}/{repo}/issues/{number}/events'

pygithub3/requests/pull_requests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def clean_body(self):
3030
'issue number or a title and body')
3131
return self.body
3232

33+
3334
class Update(Request):
3435
uri = 'repos/{user}/{repo}/pulls/{number}'
3536
resource = PullRequest

pygithub3/requests/repos/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# -*- encoding: utf-8 -*-
22

3-
from pygithub3.requests.base import Request, ValidationError
3+
from pygithub3.requests.base import Request
44
from pygithub3.resources.orgs import Team
55
from pygithub3.resources.repos import Repo, Tag, Branch
66
from pygithub3.resources.users import User
7-
from pygithub3.resources.issues import Label, Milestone
7+
88

99
class List(Request):
1010

@@ -82,6 +82,7 @@ class List_tags(Request):
8282
uri = 'repos/{user}/{repo}/tags'
8383
resource = Tag
8484

85+
8586
class List_branches(Request):
8687

8788
uri = 'repos/{user}/{repo}/branches'

pygithub3/resources/gists.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python
21
# -*- encoding: utf-8 -*-
32

43
from .base import Resource
@@ -28,6 +27,7 @@ class History(Resource):
2827
def __str__(self):
2928
return '<GistHistory (%s)>' % getattr(self, 'version', '')
3029

30+
3131
class Gist(Resource):
3232

3333
_dates = ('created_at', )
@@ -37,6 +37,7 @@ class Gist(Resource):
3737
def __str__(self):
3838
return '<Gist (%s)>' % getattr(self, 'description', '')
3939

40+
4041
class Comment(Resource):
4142

4243
_dates = ('created_at', )

pygithub3/services/git_data/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python
21
# -*- encoding: utf-8 -*-
32

43
from pygithub3.services.base import Service
@@ -8,6 +7,7 @@
87
from .tags import Tags
98
from .trees import Trees
109

10+
1111
class GitData(Service):
1212
"""Consume `Git Data API <http://developer.github.com/v3/git/>`_"""
1313

0 commit comments

Comments
 (0)