Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infra: use latest Ruff instead of isort #581

Merged
merged 1 commit into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]