Run lint check for prs (#139)

This commit is contained in:
Diogo 2023-12-12 03:23:33 -05:00 committed by GitHub
parent 25f70d4ca4
commit fb675de30d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
.github/workflows/pull_request.yml vendored Normal file
View File

@ -0,0 +1,20 @@
on:
pull_request:
branches:
- main
jobs:
check_lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pre-commit black isort clang-format
- name: Run lint
run: |
pre-commit run --all-files