Add help to auto fix linter

This commit is contained in:
Jake Howard 2018-12-07 23:18:46 +00:00
parent aba697bfb2
commit 39c69aac5f
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 9 additions and 1 deletions

8
scripts/fix.sh Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -e
export PATH=env/bin:${PATH}
black tests ipc_unix setup.py
isort -rc ipc_unix tests setup.py

View file

@ -4,7 +4,7 @@ set -e
export PATH=env/bin:${PATH} export PATH=env/bin:${PATH}
nose2 tests -C --coverage ipc_unix nose2 $@ -C --coverage ipc_unix
black tests ipc_unix setup.py --check black tests ipc_unix setup.py --check
flake8 ipc_unix tests setup.py --ignore=E128,E501 flake8 ipc_unix tests setup.py --ignore=E128,E501