Skip to content

Commit

Permalink
code quality actions
Browse files Browse the repository at this point in the history
  • Loading branch information
KPrasch committed Feb 7, 2024
1 parent 677c908 commit e5ea481
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/darker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 🧹 Darker

on:
pull_request:
branches:
- main

jobs:
darker-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- uses: akaihola/[email protected]
with:
version: "1.7.2"
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upload Python Package
name: 📦 Upload Python Package

on:
release:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/ruff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 🧹 Lint with Ruff

on:
pull_request:
branches:
- main

jobs:
ruff-lint:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ruff
pip install .
- name: Lint with Ruff
run: ruff --output-format=github nucypher

0 comments on commit e5ea481

Please sign in to comment.