Skip to content

Commit

Permalink
Replace black, isort, pylint with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
jgosmann committed Oct 27, 2024
1 parent 3137288 commit 480cc25
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 547 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ jobs:
matrix:
check:
- name: Check code-formatting
run: poetry run black --check .
- name: Check import sorting
run: poetry run isort --check-only .
- name: pylint
run: poetry run pylint goppy
run: poetry run ruff format --check .
- name: Lint
run: poetry run ruff check
steps:
- uses: actions/checkout@v4
- run: git fetch --no-tags --prune --depth=1 origin +refs/heads/main:refs/remotes/origin/main
Expand Down
19 changes: 4 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,11 @@ repos:
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.1
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
- repo: local
hooks:
- id: pylint
name: pylint
entry: poetry run pylint
language: system
types: [python]
args: ["--rcfile=.pylintrc"]
- id: ruff
- id: ruff-format
- repo: https://github.com/python-poetry/poetry
rev: '1.8.3'
hooks:
Expand Down
253 changes: 0 additions & 253 deletions .pylintrc

This file was deleted.

Loading

0 comments on commit 480cc25

Please sign in to comment.