Skip to content

Commit

Permalink
refactor(ci): switch from pylint to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-awd committed Oct 23, 2023
1 parent 8669f29 commit a979f0a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 85 deletions.
11 changes: 3 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@ repos:
types_or: [cython, pyi, python]
args: ['--filter-files']

- repo: https://github.com/PyCQA/pylint
rev: v2.17.5
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.1
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
require_serial: true
- id: ruff
102 changes: 27 additions & 75 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ pyhanko = "0.20.1"

[tool.poetry.group.dev.dependencies]
black = "^23.9.1"
pylint = "^3.0.1"
isort = "^5.12.0"
taskipy = "^1.12.0"
pytest = "^7.4.2"
ruff = "^0.1.1"

[tool.pylint]
disable = [
Expand All @@ -30,7 +30,7 @@ max-attributes=9

[tool.taskipy.tasks]
format = "isort . && black ."
lint = "pylint *.py"
lint = "ruff ."
test = "pytest ."

[tool.black]
Expand Down

0 comments on commit a979f0a

Please sign in to comment.