Skip to content

Commit

Permalink
Merge pull request #1 from egeakman/patch-1
Browse files Browse the repository at this point in the history
Update pre-commit config and add GHA checks
  • Loading branch information
furkanonder authored Oct 9, 2023
2 parents 82c9af2 + 16322dd commit d858c93
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: pre-commit checks

on: [push, pull_request, workflow_dispatch]

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- uses: pre-commit/[email protected]
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
repos:
- repo: https://github.com/psf/black
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.1
hooks:
- id: black
Expand Down Expand Up @@ -47,6 +47,10 @@ repos:
hooks:
- id: end-of-file-fixer
files: "\\.(py|.txt|.yaml|.json|.in|.md|.toml|.cfg|.html|.yml)$"
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
- id: trailing-whitespace

- repo: local
hooks:
Expand Down

0 comments on commit d858c93

Please sign in to comment.