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

26 lines
601 B
YAML
Raw Normal View History

2022-03-25 12:22:37 +00:00
name: Python lint
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
2023-02-12 10:45:48 +00:00
python-version: "3.11"
2022-03-25 12:22:37 +00:00
- uses: isort/isort-action@master
with:
sortPaths: "./maubot"
- uses: psf/black@stable
with:
src: "./maubot"
- 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