mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
GitHub Action to run pre-commit
This commit is contained in:
parent
cfd2a9968e
commit
a8f7e85348
1 changed files with 16 additions and 0 deletions
16
.github/workflows/pre-commit.yml
vendored
Normal file
16
.github/workflows/pre-commit.yml
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# https://pre-commit.com
|
||||
# This GitHub Action assumes that the repo contains a valid .pre-commit-config.yaml file.
|
||||
name: pre-commit
|
||||
on: [pull_request, push]
|
||||
jobs:
|
||||
pre-commit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: "3.8"
|
||||
- run: pip install pre-commit poetry
|
||||
- run: pre-commit --version
|
||||
- run: pre-commit install
|
||||
- run: pre-commit run --all-files
|
||||
Loading…
Add table
Add a link
Reference in a new issue