Skip to content
Draft
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
17 changes: 8 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: no-commit-to-branch
- id: trailing-whitespace
Expand All @@ -23,12 +23,11 @@ repos:
- id: shellcheck
args: [-x] # allow source files outside of checked files

- repo: https://github.com/pycqa/flake8.git
rev: 6.0.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.6
hooks:
- id: flake8

- repo: https://github.com/timothycrosley/isort
rev: 5.11.5
hooks:
- id: isort
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
9 changes: 9 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
exclude = [
".git",
]

line-length = 88

[lint]
select = ["C", "E", "F", "W", "B", "I"]
ignore = ["C901"]