From fbde02f58b1a9638ee37eac440f3509d37866ebc Mon Sep 17 00:00:00 2001 From: Tania Allard Date: Wed, 20 Nov 2024 11:57:01 +0000 Subject: [PATCH] :heavy_minus_sign: Remove black pre-commit --- .pre-commit-config.yaml | 7 ++----- pyproject.toml | 7 ++++++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3d88814a6..04b6bdc64 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,15 +21,12 @@ repos: # exclude the pytest-regressions folder tests/test_ally exclude: .+\.html|webpack\.config\.js|tests/test_a11y/ - - repo: "https://github.com/psf/black" - rev: 24.10.0 - hooks: - - id: black - - repo: "https://github.com/astral-sh/ruff-pre-commit" rev: "v0.7.2" hooks: - id: ruff + args: [--exit-non-zero-on-fix] + - id: ruff-format - repo: "https://github.com/asottile/pyupgrade" rev: v3.19.0 diff --git a/pyproject.toml b/pyproject.toml index 608aac1cd..29c03b62e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -100,11 +100,16 @@ ignore = ["D001"] # we follow a 1 line = 1 paragraph style [tool.ruff] fix = true +# keep consistent with black +line-length = 88 +indent-width = 4 [tool.ruff.lint] ignore = [ - "E501", # line too long | Black take care of it "D107", # Missing docstring in `__init__` | set the docstring in the class + "D205", # 1 blank line required between summary line and description, + "D212", + "W291", # let pre-commit handle trailing whitespace ] ignore-init-module-imports = true