name: pre-commit linter

runs:
  using: "composite"
  steps:
    - uses: actions/setup-python@v4
      with:
        python-version: "3.9"

    - name: Install pre-commit
      shell: bash
      run: |
        pip install pre-commit

    - name: Run linter
      run: pre-commit run --all-files
