Add linting, including bandit, flake8 should error in near future
This commit is contained in:
parent
69232d85fb
commit
1beae58648
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
|
@ -48,6 +48,17 @@ jobs:
|
||||||
pip install wheel
|
pip install wheel
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
python setup.py install
|
python setup.py install
|
||||||
|
- name: Install additional python dependencies
|
||||||
|
if: ${{ matrix.python-version == '3.8' }}
|
||||||
|
run: |
|
||||||
|
pip install bandit flake8
|
||||||
|
- name: Lint
|
||||||
|
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8' }}
|
||||||
|
run: |
|
||||||
|
# stop the build if there are Python syntax errors or undefined names
|
||||||
|
flake8 pybitmessage --count --select=E9,F63,F7,F82 \
|
||||||
|
--show-source --statistics --exit-zero
|
||||||
|
bandit -r --exit-zero -x tests,bitmessagecurses -s B608 pybitmessage
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
export PYTHONWARNINGS=all
|
export PYTHONWARNINGS=all
|
||||||
|
|
Reference in New Issue
Block a user