From 65e77ac5334b26bed5dd9183ed99a02ace20c0a4 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Tue, 14 Nov 2023 23:02:18 +0200 Subject: [PATCH] Configure linting and formatting tools Signed-off-by: Alfred Wingate --- pyproject.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 471fa7b..b3eb68d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,3 +27,14 @@ script-files = ["bin/euscan"] [tool.setuptools_scm] version_file = "src/euscan/_version.py" + +[tool.black] +include = "(bin|euscan)" +extend_exclude = "(man|po|.*.egg-info)" + +[tool.isort] +profile = "black" +src_paths = ["bin/euscan", "src/euscan/"] + +[tool.ruff] +extend-include = ["bin/euscan", "bin/euscan_patch_metadata"]