Skip to content

Use "current" copyright-end-year in the strict style check#374

Merged
mdickinson merged 1 commit into
mainfrom
copyright-end-year-current
Jul 21, 2026
Merged

Use "current" copyright-end-year in the strict style check#374
mdickinson merged 1 commit into
mainfrom
copyright-end-year-current

Conversation

@mdickinson

Copy link
Copy Markdown
Member

Follow-up cleanup to #370, mirroring enthought/envisage#607.

That PR adopted a hard-coded copyright end year to avoid CI breaking on the new-year rollover, but couldn't express "use the current year" for the strict check. ets-copyright-checker (flake8-ets) 1.1.0 now supports --copyright-end-year current, so we can do the cleanup that PR wanted:

  • Pin the buffered copyright end year in setup.cfg (copyright-end-year = 2026), so it's the single source of truth used by both the merge-blocking style check (etstool.py flake8) and local flake8 runs.
  • Drop the --copyright-end-year override (and the now-unused EXPECTED_COPYRIGHT_END_YEAR constant) from etstool.py; it just runs flake8 now.
  • Have the strict style check override the pinned value with --copyright-end-year current to report out-of-date copyright end years.

Pins flake8-ets >= 1.1.0, since the current value is only available from that release.

🤖 Generated with Claude Code

Follow-up cleanup to #370, mirroring enthought/envisage#607.

ets-copyright-checker (flake8-ets) 1.1.0 now supports
--copyright-end-year current, so we can pin the buffered end year in one
place and have the strict check use the current year:

- Pin the buffered copyright end year in setup.cfg
  (copyright-end-year = 2026), as the single source of truth for both
  the merge-blocking style check and local flake8 runs.
- Drop the --copyright-end-year override (and the now-unused
  EXPECTED_COPYRIGHT_END_YEAR constant) from the merge-blocking
  etstool.py flake8 check; it just runs flake8 now.
- Have the strict style check override the pinned value with
  --copyright-end-year current to report out-of-date copyright end years.

Pins flake8-ets >= 1.1.0, since the "current" value is only available
from that release.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mdickinson
mdickinson merged commit 76f06a7 into main Jul 21, 2026
25 checks passed
@mdickinson
mdickinson deleted the copyright-end-year-current branch July 21, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant