Skip to content

Commit

Permalink
➖ Remove black pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
trallard committed Nov 20, 2024
1 parent 6d16231 commit fbde02f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbde02f

Please sign in to comment.