Skip to content

Commit

Permalink
ci: Switch to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed May 31, 2024
1 parent 4319568 commit 683fe80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
name: Check lints

on: [push]

on: [push, pull_request]
jobs:
build:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install -r requirements.txt
- name: Check lints
run: pylint ./src
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
args: 'format --check'
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
**__pycache__
.mypy_cache
.ruff_cache
.vscode

0 comments on commit 683fe80

Please sign in to comment.