From c8b0d3a13ae52c82a21a37d09300130fd73af889 Mon Sep 17 00:00:00 2001 From: Thomas Mangin Date: Fri, 25 Oct 2024 16:19:28 +0100 Subject: [PATCH] move ruff exclusion to pyproject --- .pre-commit-config.yaml | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e050e0415..4b46ea4a7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: hooks: # Run the linter. - id: ruff - args: [--fix --exclude lib/exabgp/vendoring] + args: [--fix] # Run the formatter. - id: ruff-format diff --git a/pyproject.toml b/pyproject.toml index 7d4176103..2a5151023 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,6 +64,7 @@ requires = ["setuptools", "wheel"] [tool.ruff] line-length = 120 +exclude = ["dev", "lib/exabgp/vendoring"] [tool.ruff.format] quote-style = "single"