refactor: update imports and migrate missions to external module #3
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: Robot Code Linting | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install Linting Tools | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install flake8 | |
| - name: Lint with flake8 | |
| run: | | |
| # Check syntax errors and flag lines | |
| flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
| # Check basic code style | |
| flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics |