Skip to content

MNT #1172: update copyright year to 2026 with pre-commit hook#1174

Merged
prjemian merged 2 commits intomainfrom
1172-update-copyright-year
Mar 27, 2026
Merged

MNT #1172: update copyright year to 2026 with pre-commit hook#1174
prjemian merged 2 commits intomainfrom
1172-update-copyright-year

Conversation

@prjemian
Copy link
Copy Markdown
Contributor

Summary

  • Add scripts/update_copyright.py — updates the ending year in copyright notices to the current year, modeled on NeXPy's approach.
  • Add update-copyright hook to .pre-commit-config.yaml covering .py, .txt, and .toml files.
  • Update all copyright notices from 2025 → 2026 (84 files).

The hook handles all three patterns used in this repo:

  • # :copyright: (c) 2017-2025, ... (Python source files)
  • Copyright (c) 2017-2025, ... (LICENSE.txt)
  • copyright = "2017-2025, ... (pyproject.toml)

Add scripts/update_copyright.py that automatically updates the
ending year in copyright notices when run as a pre-commit hook.
Add the hook to .pre-commit-config.yaml so the year stays current
without manual edits.

Updates all three patterns used in this repo:
  # ©️ (c) 2017-YYYY, ...   (Python source files)
  Copyright (c) 2017-YYYY, ...       (LICENSE.txt)
  copyright = "2017-YYYY, ...        (pyproject.toml)

Generated by OpenCode (argo/claudesonnet46)
@prjemian prjemian added this to the 1.7.10 milestone Mar 27, 2026
@prjemian prjemian self-assigned this Mar 27, 2026
Generated by OpenCode (argo/claudesonnet46)
@prjemian
Copy link
Copy Markdown
Contributor Author

No functional changes in user-facing code.

@prjemian prjemian merged commit 4aa0b2b into main Mar 27, 2026
7 checks passed
@prjemian prjemian deleted the 1172-update-copyright-year branch March 27, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update copyright year

1 participant