Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Lint using ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
RLAlpha49 committed Jun 17, 2024
1 parent 7602947 commit b669626
Show file tree
Hide file tree
Showing 4 changed files with 155 additions and 149 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,33 @@
name: Python Lint

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

name: Ruff & Mypy
on: [push, pull_request]
jobs:
lint:
Clean:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Cache Poetry dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install dependencies
run: |
poetry install
- name: Run clean script on AniLinkPy directory
run: |
poetry run clean
poetry run clean --no-fix
- name: Run clean script on tests directory
run: |
poetry run clean tests
poetry run clean tests --no-fix
- name: Run clean script on scripts.py file
run: |
poetry run clean scripts.py
poetry run clean scripts.py --no-fix
Loading

0 comments on commit b669626

Please sign in to comment.