Skip to content

Commit

Permalink
++ pre_commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yucelz committed Apr 2, 2024
1 parent d576412 commit a1e688a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 18 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pre_commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Pre-commit

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pre-commit
- name: Run pre-commit
run: |
pre-commit run --all-files
18 changes: 0 additions & 18 deletions .github/workflows/run-test.yml

This file was deleted.

0 comments on commit a1e688a

Please sign in to comment.