Skip to content

Commit

Permalink
update config for ruff 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zariiii9003 committed Feb 2, 2024
1 parent db45fcc commit daaa4ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
repos:
- repo: https://github.com/ambv/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: v0.1.12
rev: v0.2.0
hooks:
- id: ruff
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ archs = ["auto64"] # only build for 64bit architectures
skip = "pp* *_ppc64le *-musllinux* *_s390x" # skip pypy and irrelevant architectures

[tool.ruff]
target-version = "py38"
exclude = ["./src/asammdf/gui/ui"]

[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
Expand All @@ -44,10 +48,8 @@ ignore = [
"RUF012", # mutable-class-default
"RUF015", # unnecessary-iterable-allocation-for-first-element
]
exclude = ["./src/asammdf/gui/ui"]
target-version = "py38"

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["asammdf"]
order-by-type = false
force-sort-within-sections = true

0 comments on commit daaa4ab

Please sign in to comment.