Skip to content

Commit

Permalink
Adding linting to GH CI
Browse files Browse the repository at this point in the history
  • Loading branch information
john-science committed Dec 30, 2024
1 parent 1688d46 commit a5e7b08
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/black.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: black

permissions:
contents: read

on: [push, pull_request]

jobs:
check-formatting:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: psf/[email protected]
24 changes: 24 additions & 0 deletions .github/workflows/ruff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Ruff Linting

permissions:
contents: read

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.13'
- name: Update package index
run: sudo apt-get update
- name: Run Linter
run: |
pip install -e .[dev]
ruff check .

0 comments on commit a5e7b08

Please sign in to comment.