Skip to content

Commit

Permalink
πŸ’š ci: pre-commit with github action
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-nnkn committed Apr 18, 2024
1 parent 2cf1fbe commit b9127e7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI

on:
push:
branches: [main]
pull_request:

jobs:
lint:
name: Lint code with pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files

0 comments on commit b9127e7

Please sign in to comment.