Skip to content

Commit

Permalink
chore(ci): add ruff pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare committed Jul 2, 2024
1 parent 3e119d5 commit 42e7f59
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 12 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/shellcheck.yaml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test
on: pull_request
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: ruff
run: |
pip install -r requirements-dev.txt
ruff format --check
ruff check . --output-format=github
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run shellcheck
id: shellcheck
uses: ludeeus/[email protected]
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ __pycache__/
venv/
build/
dist/
*.spec
*.spec
.venv/
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-r requirements.txt
ruff==0.5.0

0 comments on commit 42e7f59

Please sign in to comment.