Skip to content

Commit

Permalink
pre-commit: Add ruff format and flake8, isort, pyupgrade through ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
hartwork committed Oct 19, 2024
1 parent 00f38e0 commit 1149727
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,11 @@ repos:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.0
hooks:
- id: ruff
args:
- --fix
- id: ruff-format
12 changes: 12 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
indent-width = 4
line-length = 100
target-version = "py39"

[lint]
select = [
"E", # pycodestyle
"F", # Pyflakes + flake8
"I", # isort
"UP", # pyupgrade
"W", # pycodestyle
]

0 comments on commit 1149727

Please sign in to comment.