Skip to content

Commit

Permalink
ci: added code-style workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
HitaloM committed Jul 12, 2024
1 parent 2a6bf3f commit aa0f8a6
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check style

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: Install the latest version of rye
uses: eifinger/setup-rye@v4
id: setup-rye
with:
enable-cache: true

- name: Install dependencies
if: steps.setup-rye.outputs.cache-hit != 'true'
run: |
rye sync
- name: Analysing the code with Ruff
run: |
rye run ruff format --check .
rye run ruff check .

0 comments on commit aa0f8a6

Please sign in to comment.