mirror of
https://github.com/maubot/maubot.git
synced 2024-10-01 01:06:10 -04:00
1b298c0dbb
It's stable now, so there shouldn't be too many changes
26 lines
601 B
YAML
26 lines
601 B
YAML
name: Python lint
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v3
|
|
with:
|
|
python-version: "3.10"
|
|
- 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
|