Add linting, including bandit, flake8 should error in near future

This commit is contained in:
Dmitri Bogomolov 2021-08-03 16:20:04 +03:00
parent 0b9bf94cc2
commit 89801d0be2
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -48,6 +48,17 @@ jobs:
pip install wheel
pip install -r requirements.txt
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
run: |
export PYTHONWARNINGS=all