Skip to content

Commit 40d68b6

Browse files
author
Johan Broberg
committed
Update copyright notice regex to match CLAUDE.md specification
1 parent 2f5fc68 commit 40d68b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ exclude = [
112112
]
113113

114114
[tool.ruff.lint.flake8-copyright]
115-
# Require this exact line anywhere in the first 4096 bytes
116-
notice-rgx = "^# Copyright \\(c\\) Microsoft\\. All rights reserved\\."
115+
# Require this exact copyright header (matches CLAUDE.md specification)
116+
notice-rgx = "(?s)# Copyright \\(c\\) Microsoft Corporation\\.\\n# Licensed under the MIT License\\."
117117
# (optional) ensure all files are checked regardless of size
118118
min-file-size = 1
119119

0 commit comments

Comments
 (0)