From 426dbec7940e275b0a9f863fecaff1fbee7444a0 Mon Sep 17 00:00:00 2001 From: Newbyte Date: Sat, 21 Dec 2024 14:16:13 +0100 Subject: [PATCH] pyproject.toml: Add CPY001 to Ruff linting (MR 2516) This lints copyright headers to ensure we don't forget them. Unfortunately, it is only available in Ruff preview right now, so the following commit will enable that for the Ruff CI check. However, this could be reverted in the future once this check makes it into Ruff "not preview". Closes https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/issues/2526 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1c0ea4ff..953f7ac1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ line-length=100 target-version = "py310" [tool.ruff.lint] -extend-select = ["UP"] +extend-select = ["CPY001", "UP"] [tool.ruff.lint.extend-per-file-ignores] # F401: imported but unused, common for __init__.py files