diff options
-rw-r--r-- | .pre-commit-config.yaml | 7 | ||||
-rw-r--r-- | pyproject.toml | 11 |
2 files changed, 18 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b61dac4..4c3eb9c 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 0000000..977d84b --- /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", +] |