From 4cc26402e846733201d3d283d70deec394000dd0 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Wed, 18 Jan 2023 19:52:05 +0200 Subject: [PATCH] Add baseline ruff configuration --- .pre-commit-config.yaml | 7 +++++++ pyproject.toml | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 pyproject.toml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b61dac46..4c3eb9c3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,11 @@ repos: + - repo: https://github.com/charliermarsh/ruff-pre-commit + rev: v0.0.224 + hooks: + - id: ruff + args: + - --fix + - --force-exclude - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..977d84b6 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,11 @@ +[tool.ruff] +target-version = "py37" +select = [] +ignore = [ + "C901", # Complexity + "E501", # Line length + "E741", # Ambiguous variable name +] +extend-exclude = [ + "tests/messages/data", +] -- 2.47.3