archive
/
ipc-unix
Archived
1
Fork 0

Add flake8 and isort

This commit is contained in:
Jake Howard 2018-12-07 20:44:31 +00:00
parent 498a871c70
commit 5f4aac4822
Signed by: jake
GPG Key ID: 57AFB45680EDD477
6 changed files with 17 additions and 5 deletions

View File

@ -1,2 +1,4 @@
black==18.9b0
flake8==3.6.0
isort==4.3.4
nose2==0.8.0

View File

@ -1,6 +1,7 @@
import socket
from ipc_unix.utils import read_payload
import ujson
from ipc_unix.utils import read_payload
def send_to(socket_path, data):

View File

@ -1,5 +1,6 @@
import socketserver
import threading
import ujson
from ipc_unix.utils import read_payload

View File

@ -6,4 +6,6 @@ export PATH=env/bin:${PATH}
python setup.py test
black tests ipc_unix
black tests ipc_unix --check
flake8 ipc_unix tests --ignore=E128,E501
isort -rc -c ipc_unix tests

5
setup.cfg Normal file
View File

@ -0,0 +1,5 @@
[isort]
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True

View File

@ -1,7 +1,8 @@
from unittest import TestCase
from tests import EchoServer, get_random_path
from ipc_unix import client
from functools import partial
from unittest import TestCase
from ipc_unix import client
from tests import EchoServer, get_random_path
class BasicServerTestCase(TestCase):