Skip to content

Commit 8ad2f71

Browse files
committed
pep8, import sort, prep for release
1 parent 96dd5dc commit 8ad2f71

File tree

4 files changed

+28
-15
lines changed

4 files changed

+28
-15
lines changed

setup.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
description="A python client library for taskwarrior's taskd",
1111
license="GPL v3+",
1212
url="https://github.com/jrabbit/taskd-client-py",
13-
classifiers=["License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
14-
"Development Status :: 4 - Beta",
15-
"Intended Audience :: Developers",
16-
"Programming Language :: Python :: 2 :: Only",
17-
"Programming Language :: Python :: 2.7",
18-
])
13+
classifiers=["License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
14+
"Development Status :: 4 - Beta",
15+
"Intended Audience :: Developers",
16+
"Programming Language :: Python :: 2 :: Only",
17+
"Programming Language :: Python :: 2.7",
18+
])

taskc/simple.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
import ssl
1+
import logging
2+
import os.path
23
import socket
34
import struct
4-
import email
5-
import os.path
6-
import logging
75

8-
import transaction
6+
import email
97
import errors
8+
import ssl
9+
import transaction
1010

1111
logger = logging.getLogger(__name__)
1212

13+
1314
class TaskdConnection(object):
1415

1516
def __init__(self, port=53589):
@@ -157,4 +158,3 @@ def sync(self, sync_key):
157158
Sync our tasks and server's, takes sync_key (uuid debounce from previous txn)
158159
"""
159160
pass
160-

taskc/simple_test.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def test_rc(self):
2020
self.assertEqual(self.tc.username, "Jack Laxson")
2121
self.assertEqual(self.tc.uuid, "f60bfcb9-b7b8-4466-b4c1-7276b8afe609")
2222

23+
2324
class TestConnection(unittest.TestCase):
2425

2526
def setUp(self):
@@ -54,8 +55,19 @@ def test_put(self):
5455
{"description":"fold clothes","entry":"20141130T081709Z","status":"pending","uuid":"d0f53865-2f01-42a8-9f9e-3652c63f216d"}"""
5556
resp = self.tc.put(tasks)
5657
self.assertEqual(resp.status_code, 200)
57-
#might not be correct depends on state of taskd
58+
# might not be correct depends on state of taskd
5859

60+
# class TestStringIO(unittest.TestCase):
61+
# def setUp(self):
62+
# self.tc = TaskdConnection()
63+
# self.tc.server = "localhost"
64+
# self.tc.port = 53589
65+
# self.tc.uuid = os.getenv("TEST_UUID")
66+
# self.tc.group = "Public"
67+
# self.tc.username = "test_user"
68+
# self.tc.client_cert = "taskc/fixture/pki/client.cert.pem"
69+
# self.tc.client_key = "taskc/fixture/pki/client.key.pem"
70+
# self.tc.cacert_file = "taskc/fixture/pki/ca.cert.pem"
5971

6072
if __name__ == '__main__':
6173
unittest.main()

taskc/transaction.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
from email.message import Message
21
import struct
3-
from taskc import __version__
2+
3+
from email.message import Message
44

55
from errors import TaskdError
6+
from taskc import __version__
67

78

89
def mk_message(org, user, key):

0 commit comments

Comments
 (0)