Skip to content

[pre-commit.ci] pre-commit autoupdate #942

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #942

Workflow file for this run

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