Merge pull request #54 from pykale/refine #324
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will run lint and many other pre-commit hooks | |
# https://pre-commit.com/ | |
name: pre-commit | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
name: Pre-commit checks | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.7" | |
- name: Install dependencies | |
run: | | |
pip install pre-commit | |
pre-commit install | |
- name: Run pre-commit checks | |
run: | | |
pre-commit run --all-files |