new doc #311
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint source code | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install | |
| run: | | |
| sudo apt-get install python3-pip | |
| pip3 install flake8 doc8 bandit | |
| - name: Run linter | |
| run: | | |
| flake8 --ignore=W503 --max-line-length 130 | |
| doc8 doc/ --max-line-length=130 | |
| bandit otfmi -r -ll | |