Skip to content

Commit

Permalink
Create lint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiky30 authored Jan 23, 2024
1 parent 3db5a39 commit 318571e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Lint
on:
push:
branches-ignore:
- "release/**"

jobs:
lint:
name: Lint code
runs-on: ubuntu-latest

steps:
- name: Check out repo
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Pre-commit checks
# Note: The pre-commit version is duplicated in the pyproject.toml
run: |
pip install pre-commit==3.6.0
pre-commit run --all-files

0 comments on commit 318571e

Please sign in to comment.