Skip to content

Commit

Permalink
infra: use latest Ruff instead of isort
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Feb 14, 2023
1 parent 56a1224 commit fc81ff2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
8 changes: 2 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,11 @@ repos:
rev: "v3.0.0-alpha.4"
hooks:
- id: prettier
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.238
rev: v0.0.246
hooks:
- id: ruff
args: [--fix, --format, grouped]
args: [--fix, --format, grouped, --show-fixes]
- repo: https://github.com/codespell-project/codespell
rev: "v2.2.2"
hooks:
Expand Down
13 changes: 5 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,6 @@ line-length = 127
skip-string-normalization = true
target-version = ["py311", "py310", "py39", "py38", "py37"]

[tool.isort]
profile = "black"
lines_between_types = 1
lines_after_imports = 2
line_length = 127
known_first_party = "build"
skip = [] # "build" is included in the default skip list

[tool.ruff]
line-length = 127
exclude = []
Expand All @@ -162,3 +154,8 @@ target-version = "py37"

[tool.ruff.mccabe]
max-complexity = 10

[tool.ruff.isort]
lines-between-types = 1
lines-after-imports = 2
known-first-party = ["build"]

0 comments on commit fc81ff2

Please sign in to comment.