[pre-commit.ci] pre-commit autoupdate #942
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: | |
branches: [master] | |
jobs: | |
codespell_ruff_and_black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: pip install --user black "codespell[toml]" ruff | |
- run: codespell | |
- run: ruff --output-format=github . | |
- run: black --check . | |
mypy_and_pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- run: pip install --upgrade pip setuptools wheel | |
- run: pip install mypy pytest | |
- run: pip install -r requirements.txt -r BWBCoverBot/requirements.txt -r twitter-borrowbot/requirements.txt | |
- run: pip install --editable . # https://docs.pytest.org/en/stable/goodpractices.html | |
- run: pip list --outdated | |
- run: mypy --exclude "old-onix-bot" --exclude "twitter-borrowbot" --install-types --non-interactive . || true | |
- run: pytest | |
# - run: pytest --doctest-modules . || true |