Switch to importlib-metadata to drop deprecated pkg_resources #488
Workflow file for this run
This file contains 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_python | |
on: [pull_request, push] | |
jobs: | |
lint_python: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
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 --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 |