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
This commit is contained in:
Newbyte 2024-12-21 14:16:13 +01:00 committed by Oliver Smith
parent 871a3128d8
commit 426dbec794
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -34,7 +34,7 @@ line-length=100
target-version = "py310" target-version = "py310"
[tool.ruff.lint] [tool.ruff.lint]
extend-select = ["UP"] extend-select = ["CPY001", "UP"]
[tool.ruff.lint.extend-per-file-ignores] [tool.ruff.lint.extend-per-file-ignores]
# F401: imported but unused, common for __init__.py files # F401: imported but unused, common for __init__.py files