Configure linting and formatting tools

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2023-11-14 23:02:18 +02:00
parent dfa0bb7424
commit 65e77ac533
No known key found for this signature in database
GPG Key ID: A12750536B5E7010

View File

@ -27,3 +27,14 @@ script-files = ["bin/euscan"]
[tool.setuptools_scm] [tool.setuptools_scm]
version_file = "src/euscan/_version.py" 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"]