Move black to separate script
This commit is contained in:
parent
69c979de62
commit
3e1f9a8bfa
4 changed files with 10 additions and 2 deletions
|
@ -11,3 +11,4 @@ jobs:
|
||||||
- run: env/bin/pip install -e .
|
- run: env/bin/pip install -e .
|
||||||
- run: env/bin/pip install -r dev-requirements.txt
|
- run: env/bin/pip install -r dev-requirements.txt
|
||||||
- run: ./scripts/test.sh
|
- run: ./scripts/test.sh
|
||||||
|
- run: ./scripts/black.sh
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
black==18.9b0
|
|
||||||
flake8==3.6.0
|
flake8==3.6.0
|
||||||
flake8-comprehensions==1.4.1
|
flake8-comprehensions==1.4.1
|
||||||
flake8-mutable==1.2.0
|
flake8-mutable==1.2.0
|
||||||
|
|
9
scripts/black.sh
Executable file
9
scripts/black.sh
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
export PATH=env/bin:${PATH}
|
||||||
|
|
||||||
|
pip install black==18.9b0
|
||||||
|
|
||||||
|
black tests ipc_unix setup.py --check
|
|
@ -6,7 +6,6 @@ export PATH=env/bin:${PATH}
|
||||||
|
|
||||||
nose2 $@ -C --coverage ipc_unix --verbose
|
nose2 $@ -C --coverage ipc_unix --verbose
|
||||||
|
|
||||||
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
|
||||||
isort -rc -c ipc_unix tests setup.py
|
isort -rc -c ipc_unix tests setup.py
|
||||||
mypy --strict-optional ipc_unix tests
|
mypy --strict-optional ipc_unix tests
|
||||||
|
|
Reference in a new issue