Skip to content

Commit 085107a

Browse files
committed
Reformat code
1 parent d920e11 commit 085107a

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

gogs_client/_implementation/http_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class RelativeHttpRequestor(object):
1111
A thin wrapper around the requests module that allows for endpoint paths
1212
to be given relative to a fixed base URL
1313
"""
14+
1415
def __init__(self, base_url, session=None):
1516
self.base_url = base_url
1617
self.session = session or requests.Session()

gogs_client/entities.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ class DeployKey(GogsEntity):
284284
#: :type: bool
285285
read_only = attr.ib()
286286

287+
287288
@attr.s(frozen=True)
288289
class GogsBranch(GogsEntity):
289290
"""
@@ -300,6 +301,7 @@ class GogsBranch(GogsEntity):
300301
#: :type: entities.GogsCommit
301302
commit = attr.ib(convert=lambda parsed_json: GogsCommit.from_json(parsed_json))
302303

304+
303305
@attr.s(frozen=True)
304306
class GogsCommit(GogsEntity):
305307
"""

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1+
attrs
12
future
23
requests
3-
attrs

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
from setuptools import setup, find_packages
21
from codecs import open
32
from os import path
43

5-
here = path.abspath(path.dirname(__file__))
4+
from setuptools import setup, find_packages
65

6+
here = path.abspath(path.dirname(__file__))
77

88
with open(path.join(here, "README.rst"), "r") as f:
99
long_description = f.read()

tests/http_utils_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class HttpUtilsTest(unittest.TestCase):
7-
87
def test_append_url1(self):
98
base = "https://www.google.com/"
109
path = "/images/"
@@ -40,5 +39,6 @@ def test_absolute3(self):
4039
self.assertEqual(requestor.absolute_url(path),
4140
"https://hello.org/dir1/dir2/dir3/file.txt")
4241

42+
4343
if __name__ == "__main__":
4444
unittest.main()

0 commit comments

Comments
 (0)