Add flake8 and isort
This commit is contained in:
parent
498a871c70
commit
5f4aac4822
6 changed files with 17 additions and 5 deletions
|
@ -1,2 +1,4 @@
|
|||
black==18.9b0
|
||||
flake8==3.6.0
|
||||
isort==4.3.4
|
||||
nose2==0.8.0
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import socketserver
|
||||
import threading
|
||||
|
||||
import ujson
|
||||
from ipc_unix.utils import read_payload
|
||||
|
||||
|
|
|
@ -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
5
setup.cfg
Normal file
|
@ -0,0 +1,5 @@
|
|||
[isort]
|
||||
multi_line_output=3
|
||||
include_trailing_comma=True
|
||||
force_grid_wrap=0
|
||||
use_parentheses=True
|
|
@ -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):
|
||||
|
|
Reference in a new issue