Skip to content

Commit

Permalink
fix: pre-commit (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlitgrace authored Sep 22, 2023
1 parent cbbe2cf commit 395bb8e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: pre-commit

on:
pull_request:
push:
branches: ['*']

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
18 changes: 10 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: black
args: ['--line-length', '92', '--target-version', 'py312']

- repo: https://github.com/psf/black
rev: 23.9.1
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: black
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-ast
- id: sort-simple-yaml

0 comments on commit 395bb8e

Please sign in to comment.