Skip to content

Commit

Permalink
Add ruff config and enable it in pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Dec 6, 2024
1 parent e63e778 commit b719f61
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,12 @@ repos:
entry: .github/scripts/clang-format-hook
types: [c++]
language: system
# - id: pylint
# name: pylint
# entry: 'pylint --rcfile=.github/scripts/pylint.rc --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}"'
# types: [python]
# language: system
# - id: flake8
# name: flake8
# entry: flake8
# types: [python]
# language: system
- id: ruff-format
name: ruff-format
entry: ruff format --force-exclude
types: [python]
language: system

- repo: https://github.com/johann-petrak/licenseheaders.git
rev: 'v0.8.8'
hooks:
Expand Down
10 changes: 10 additions & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
target-version = "py311"

line-length = 99

[format]
# Make things format the same way as black
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"

0 comments on commit b719f61

Please sign in to comment.