diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b1a9072f..3066f74f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: diff --git a/.ruff.toml b/.ruff.toml new file mode 100644 index 00000000..5ac82934 --- /dev/null +++ b/.ruff.toml @@ -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"