File: lint_python.yml

package info (click to toggle)
python-internetarchive 5.4.0-2~deb13u1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,228 kB
  • sloc: python: 7,602; xml: 180; makefile: 180
file content (18 lines) | stat: -rw-r--r-- 692 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
name: lint_python
on: [pull_request, push]
jobs:
  lint_python:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with:
          cache: pip
          python-version: 3.x
      - run: pip install --upgrade pip setuptools wheel
      - run: pip install .[all]
      - run: black --check --skip-string-normalization . || true
      - run: ruff check --output-format=github  # See pyproject.toml for configuration
      - run: pip install -r pex-requirements.txt -r tests/requirements.txt
      - run: mypy .  # See setup.cfg for configuration
      - run: safety check || true  # Temporary fix for https://pyup.io/v/51457/f17