Skip to content

Commit

Permalink
black + isort => ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Aug 26, 2024
1 parent 9db68c1 commit d265059
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
15 changes: 1 addition & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
ci:
autoupdate_branch: devel
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
args:
- --profile
- black
- --project
- tsid
- --filter-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
hooks:
- id: ruff
args:
- --fix
- --exit-non-zero-on-fix
- id: format
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
Expand All @@ -39,7 +30,3 @@ repos:
- id: check-symlinks
- id: check-toml
- id: check-yaml
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[tool.isort]
profile = "black"
[tool.ruff]
extend-exclude = ["cmake"]

[tool.ruff.lint]
extend-ignore = ["COM812", "D203", "D213"]
extend-select = ["A", "B", "C", "COM", "EM", "EXE", "G", "N", "NPY", "PTH", "RET", "RUF", "UP", "W", "YTT"]

[tool.tomlsort]
all = true

0 comments on commit d265059

Please sign in to comment.