Skip to content

Commit

Permalink
Add pre-commit configuration + GitHub Actions lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Jan 25, 2024
1 parent 89531e8 commit 01e7f0b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Lint

on:
push:
branches:
- main
pull_request:

jobs:
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- uses: pre-commit/[email protected]
env:
RUFF_OUTPUT_FORMAT: github
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.14
hooks:
- id: ruff
args:
- --fix
# - id: ruff-format # TODO: enable when the time is right

0 comments on commit 01e7f0b

Please sign in to comment.