Skip to content

Commit

Permalink
chore: replace black with ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
mkniewallner committed Oct 28, 2023
1 parent da45400 commit 2999f61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
7 changes: 2 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,5 @@ repos:
rev: "v0.1.3"
hooks:
- id: ruff

- repo: https://github.com/psf/black-pre-commit-mirror
rev: "23.9.1"
hooks:
- id: black
args: [--exit-non-zero-on-fix]
- id: ruff-format
8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ types-colorama = { version = "0.4.15.12", markers = "sys_platform == 'win32'" }
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.black]
line-length = 120
target-version = ["py38"]
preview = true

[tool.coverage.report]
skip_empty = true
# Subset of rules from https://pypi.org/project/covdefaults/
Expand Down Expand Up @@ -173,6 +168,9 @@ extend-exclude = ["tests/data/*"]
[tool.ruff.flake8-type-checking]
strict = true

[tool.ruff.format]
preview = true

[tool.ruff.isort]
required-imports = ["from __future__ import annotations"]

Expand Down
4 changes: 0 additions & 4 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@
matchPackageNames: ["astral-sh/ruff-pre-commit"],
customChangelogUrl: "https://github.com/charliermarsh/ruff",
},
{
matchPackageNames: ["psf/black-pre-commit-mirror"],
customChangelogUrl: "https://github.com/psf/black",
},
],

// https://docs.renovatebot.com/configuration-options/#regexmanagers
Expand Down

0 comments on commit 2999f61

Please sign in to comment.