You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move license header exemptions to a TOML config and run the check via just
Read the exempt suffixes and the files without the header from
scripts/config/license_headers.toml, rejecting unknown keys, non-string
lists, and duplicate entries. Python 3.10 reads it with tomli, now an
explicit dev dependency.
Add a license-headers recipe, run by lint and by the License Headers
workflow, so that both use the project's Python through uv.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/contributing.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,7 @@ For files with YAML front matter, the header may be written as YAML comments ins
124
124
Use this placement for GitHub issue templates so the notice belongs to the template metadata rather than the issue body.
125
125
For files that cannot contain comments, and for generated build artifacts or third-party assets, agree on an appropriate attribution location in the issue rather than inserting an invalid header.
126
126
`just lint` and the License Headers workflow check the header with `scripts/check_license_headers.py`.
127
-
The checker exempts symbolic links and empty, binary, data, and lock files, and lists the other files without the header.
127
+
The checker exempts symbolic links and empty and binary files, and `scripts/config/license_headers.toml` lists the exempt file suffixes, such as data and lock files, and the other files without the header.
128
128
A new file that is not exempt and has no header, such as third-party material, is added to that list as agreed in the issue.
129
129
130
130
The short notice and license reference follow [Google's MIT header example](https://opensource.google/documentation/reference/releasing/licenses#mit-header), with an [SPDX identifier](https://spdx.org/licenses/MIT.html) added.
0 commit comments