Move linting to generic script
This commit is contained in:
parent
43bb43e199
commit
336e2aa0ba
4 changed files with 13 additions and 14 deletions
|
@ -11,4 +11,4 @@ jobs:
|
|||
- run: env/bin/pip install -e .
|
||||
- run: env/bin/pip install -r dev-requirements.txt
|
||||
- run: ./scripts/test.sh
|
||||
- run: ./scripts/black.sh
|
||||
- run: ./scripts/lint.sh
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
export PATH=env/bin:${PATH}
|
||||
|
||||
pip install black==18.9b0
|
||||
|
||||
black tests ipc_unix setup.py --check
|
12
scripts/lint.sh
Executable file
12
scripts/lint.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
export PATH=env/bin:${PATH}
|
||||
|
||||
pip install black==18.9b0
|
||||
|
||||
black tests ipc_unix setup.py --check
|
||||
flake8 ipc_unix tests setup.py --ignore=E128,E501
|
||||
isort -rc -c ipc_unix tests setup.py
|
||||
mypy --strict-optional ipc_unix tests
|
|
@ -5,7 +5,3 @@ set -e
|
|||
export PATH=env/bin:${PATH}
|
||||
|
||||
nose2 $@ -C --coverage ipc_unix --verbose
|
||||
|
||||
flake8 ipc_unix tests setup.py --ignore=E128,E501
|
||||
isort -rc -c ipc_unix tests setup.py
|
||||
mypy --strict-optional ipc_unix tests
|
||||
|
|
Reference in a new issue