Skip to content

Commit

Permalink
ci: switch linter & formatter to ruff (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-young authored Apr 6, 2024
1 parent 0999fcb commit fe30757
Show file tree
Hide file tree
Showing 83 changed files with 761 additions and 1,144 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/pylint.yaml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/ruff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Ruff

on:
push:
branches: [master]
paths:
- "nazurin/**"
pull_request:
types: [opened, reopened, synchronize, edited]
branches: [master]
paths:
- "nazurin/**"
- ".github/workflows/ruff.yaml"

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: y-young/ruff-action@v2
13 changes: 6 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
files: \.py$
- repo: https://github.com/pycqa/isort
rev: 5.13.2
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
hooks:
- id: isort
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.3.0
hooks:
- id: black
- id: ruff
args: [--fix]
- id: ruff-format

ci:
autoupdate_schedule: quarterly
Loading

0 comments on commit fe30757

Please sign in to comment.