mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-01 00:41:09 +00:00
16 lines
394 B
YAML
16 lines
394 B
YAML
|
name: pre-commit
|
||
|
|
||
|
on: [push, pull_request]
|
||
|
|
||
|
jobs:
|
||
|
pre-commit:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- uses: actions/setup-python@v2
|
||
|
- name: Install pre-commit
|
||
|
run: |
|
||
|
python -m pip install --upgrade pip
|
||
|
python -m pip install --upgrade pre-commit
|
||
|
- run: pre-commit run --verbose --all-files --show-diff-on-failure
|