ci: migrate from forked black to ruff-format

This commit is contained in:
Ankush Menat 2024-02-05 18:17:48 +05:30
parent 455c68ac55
commit 2cdbf54e8d
2 changed files with 10 additions and 6 deletions

View file

@ -26,10 +26,10 @@ repos:
- id: pyupgrade
args: ['--py310-plus']
- repo: https://github.com/frappe/black
rev: 951ccf4d5bb0d692b457a5ebc4215d755618eb68
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.0
hooks:
- id: black
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1

View file

@ -88,11 +88,15 @@ dependencies = [
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"
[tool.black]
line-length = 99
[tool.ruff]
line-length = 110
[tool.ruff.format]
indent-style = "tab"
docstring-code-format = true
[tool.isort]
line_length = 99
line_length = 110
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0