ci: migrate from isort to ruff
This commit is contained in:
parent
2cdbf54e8d
commit
b418dba7ae
2 changed files with 5 additions and 14 deletions
|
|
@ -29,7 +29,12 @@ repos:
|
|||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.2.0
|
||||
hooks:
|
||||
- id: ruff
|
||||
name: "Sort Python imports"
|
||||
args: ["--select", "I", "--fix"]
|
||||
|
||||
- id: ruff-format
|
||||
name: "Format Python code"
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: v2.7.1
|
||||
|
|
@ -67,11 +72,6 @@ repos:
|
|||
frappe/public/js/lib/.*
|
||||
)$
|
||||
|
||||
- repo: https://github.com/PyCQA/isort
|
||||
rev: 5.12.0
|
||||
hooks:
|
||||
- id: isort
|
||||
|
||||
- repo: https://github.com/PyCQA/flake8
|
||||
rev: 6.0.0
|
||||
hooks:
|
||||
|
|
|
|||
|
|
@ -95,15 +95,6 @@ line-length = 110
|
|||
indent-style = "tab"
|
||||
docstring-code-format = true
|
||||
|
||||
[tool.isort]
|
||||
line_length = 110
|
||||
multi_line_output = 3
|
||||
include_trailing_comma = true
|
||||
force_grid_wrap = 0
|
||||
use_parentheses = true
|
||||
ensure_newline_before_comments = true
|
||||
indent = "\t"
|
||||
|
||||
[tool.bench.dev-dependencies]
|
||||
coverage = "~=6.5.0"
|
||||
Faker = "~=18.10.1"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue