diff options
author | Aarni Koskela <akx@iki.fi> | 2023-01-18 19:52:05 +0200 |
---|---|---|
committer | Aarni Koskela <akx@iki.fi> | 2023-01-18 21:07:51 +0200 |
commit | 4cc26402e846733201d3d283d70deec394000dd0 (patch) | |
tree | 36f7904f343a106b8a5297b613c1ee4e17e55a9b | |
parent | 3fc318e6faf656c8da567281b3c5d3042e3ca010 (diff) | |
download | babel-4cc26402e846733201d3d283d70deec394000dd0.tar.gz |
Add baseline ruff configuration
-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", +] |