maubot/.github/workflows/python-lint.yml

27 lines
627 B
YAML
Raw Normal View History

2022-03-25 08:22:37 -04:00
name: Python lint
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
2024-03-07 09:25:12 -05:00
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
2022-03-25 08:22:37 -04:00
with:
2024-03-07 09:25:12 -05:00
python-version: "3.12"
2022-03-25 08:22:37 -04:00
- uses: isort/isort-action@master
with:
sortPaths: "./maubot"
- uses: psf/black@stable
with:
src: "./maubot"
2024-03-07 09:25:12 -05:00
version: "24.2.0"
2022-03-25 08:22:37 -04:00
- name: pre-commit
run: |
pip install pre-commit
pre-commit run -av trailing-whitespace
pre-commit run -av end-of-file-fixer
pre-commit run -av check-yaml
pre-commit run -av check-added-large-files