Version 4.111.0 release candidate #42501
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 files - no fixing | |
| # This will check linting in local PRs | |
| on: ["push", "pull_request"] | |
| jobs: | |
| build: | |
| name: Lint-only | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Check out Scout code | |
| - name: Check out git repository | |
| uses: actions/checkout@v6 | |
| # Set up python | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: ".python-version" | |
| - name: Install Python Dependencies | |
| run: | | |
| pip install black flake8 isort | |
| - name: Run linters | |
| uses: wearerequired/lint-action@v2 | |
| # Let linters fix problems if they can | |
| with: | |
| github_token: ${{ secrets.github_token }} | |
| auto_fix: false | |
| # Enable linters | |
| black: true | |
| black_args: "--check -l 100" | |
| # stop the build if there are Python syntax errors or undefined names | |
| flake8: true | |
| flake8_args: "scout/ --count --select=E9,F63,F7,F82 --max-line-length 100 --show-source --statistics" | |
| - name: Run isort | |
| uses: jamescurtin/isort-action@master | |
| with: | |
| configuration: "--check-only --diff -m 3 --tc --fgw 0 --up -n -l 100" |