Skip to content

Commit

Permalink
Merge pull request #19 from tekktrik/dev/update
Browse files Browse the repository at this point in the history
Switch to ruff
  • Loading branch information
tekktrik authored Feb 21, 2024
2 parents 9859a82 + 0e9e78b commit e431d3e
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 707 deletions.
1 change: 1 addition & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
name: Run build CI
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
py-version: [
"3.8",
Expand Down
43 changes: 8 additions & 35 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,38 +28,11 @@ repos:
name: Fix end of files
- id: trailing-whitespace
name: Trim trailing whitespace
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
name: Sort imports via isort
args:
- --multi-line
- VERTICAL_HANGING_INDENT
- --tc
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
name: Format via black
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
name: Upgrade to Python 3.8+ syntax
args:
- --py38-plus
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
name: Check docstyle
- repo: https://github.com/PyCQA/pylint
rev: v3.0.3
hooks:
- id: pylint
name: Lint via pylint
types: [python]
exclude: "^(docs/conf.py)"
args:
- --disable=import-error
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
hooks:
- id: ruff
name: Lint via ruff
args: [--fix]
- id: ruff-format
name: Format via ruff
Loading

0 comments on commit e431d3e

Please sign in to comment.