| name: TileDB Python Linting | |
| on: [push, pull_request, workflow_dispatch] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-python@v4 | |
| - name: Run pre-commit hooks on all files | |
| run: python -m pip -v install pre-commit && pre-commit run -a -v | |
| - name: Check formatting (linux only)' | |
| run: | | |
| source $GITHUB_WORKSPACE/ci/scripts/check_formatting_linux.sh | |
| shell: bash | |
| if: ${{ runner.os == 'Linux' }} | |