Skip to content

Commit

Permalink
chore(ci): add pre-commit workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans committed Jan 9, 2024
1 parent bb22ff6 commit 3b23f33
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Lint code and (optionally) apply fixes
name: Lint code

on:
pull_request:
push:
branches: [main]
workflow_dispatch:

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- uses: pre-commit/action@v3.0.0
- uses: pre-commit-ci/lite-action@v1.0.1
if: always()

1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ repos:
ci:
autofix_commit_msg: 'chore(fmt): auto fixes from pre-commit hooks'
autoupdate_commit_msg: 'chore(deps): update pre-commit hooks'
skip: [pylint] # because deps are too heavy

0 comments on commit 3b23f33

Please sign in to comment.