Skip to content

Commit

Permalink
Updating to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Samreay committed Oct 29, 2023
1 parent 0250d89 commit 2461153
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@ repos:
args:
- --unsafe
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
rev: v0.1.2
hooks:
- id: ruff
args: ["--fix"]
args: ["--fix", "--no-unsafe-fixes"]
- id: ruff-format
- repo: local
hooks:
- id: tests
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ ignore = ["PD010", "PD901", "PLR2004", "UP017", "PLR0915", "TRY003", "INP001", "
line-length = 120
target-version = "py310"

[tool.ruff.format]
indent-style = "space"
quote-style = "double"
line-ending = "auto"

[tool.ruff.extend-per-file-ignores]
"test/***" = ["INP001"]
"__init__.py" = ["E402", "F401"]
Expand Down

0 comments on commit 2461153

Please sign in to comment.