@@ -212,7 +212,6 @@ select = [
212212 " B" , # flake8-bugbear (`B`)
213213 " A" , # flake8-builtins (`A`)
214214 " COM" , # flake8-commas (`COM`)
215- # "CPY", # flake8-copyright (`CPY`) -> Rules included in the preview version of RUFF. It may be added in the future, but for now, disable it.
216215 " C4" , # flake8-comprehensions (`C4`)
217216 " DTZ" , # flake8-datatimez (`DTZ`)
218217 " T10" , # flake8-debugger (`T10`)
@@ -246,6 +245,11 @@ select = [
246245 " RUF" , # Ruff-specific rules (`RUF`)
247246]
248247
248+ # to be removed when updating to ruff>=2.0
249+ preview = true
250+ explicit-preview-rules = true
251+ extend-select = [" CPY001" ]
252+
249253ignore = [
250254 # pydocstyle
251255 # On top of the Google convention, disable `D417`, which requires
@@ -360,6 +364,12 @@ max-branches = 50
360364max-statements = 150
361365max-returns = 10
362366
367+ [tool .ruff .lint .flake8-copyright ]
368+ notice-rgx = """
369+ # Copyright \\ (C\\ ) (\\ d{4}(-\\ d{4})?) Intel Corporation
370+ # SPDX-License-Identifier: Apache-2\\ .0
371+ """
372+
363373[tool .ruff .per-file-ignores ]
364374# Declare an additional exclude rule for test code
365375"tests/**/*.py" = [
0 commit comments