Skip to content

Commit

Permalink
format python code with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Jan 3, 2024
1 parent 60e5f9f commit ff19757
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 2 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
ci:
autoupdate_schedule: quarterly
repos:
- 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.290"
rev: "v0.1.11"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[tool.black]
line-length = 79

[tool.ruff]
line-length = 79
select = ["E", "F", "I"]
target-version = "py39"

0 comments on commit ff19757

Please sign in to comment.