Repository navigation
[config] Allow Unicode en-dash as a year-range separator during copyright end-year substitution. - #12450
[config] Allow Unicode en-dash as a year-range separator during copyright end-year substitution.#12450jayaddison wants to merge 5 commits into
Conversation
…t use unicode en-dash (codepoint decimal 8211).
This reverts commit 77afade.
| * ``YYYY-YYYY,`` | ||
| * ``YYYY-YYYY `` | ||
| * ``YYYY-YYYY`` | ||
| * ``YYYY–YYYY`` |
There was a problem hiding this comment.
Even though it would be possible to disable RUF002 (ambiguous character) linting on a per-file basis, I think it's a useful and important enough lint that I'll rewrite this docstring to refer to EN-DASH by character name instead.
…ame instead of using it as a literal. This resolves a RUF002 ambiguous-character lint error emitted by v0.4.7 of ruff.
|
Hrm; by chance I've noticed that this would likely make the They're considering streamlining that copyright notice; even so, I'd like to raise awareness of this risk, and I don't think we should merge this change yet. (this wasn't discovered by any systematic checks of existing copyright notices; it just so happens that I have a pending contribution to |
Feature or Bugfix
Purpose
SOURCE_DATE_EPOCHis configured in the environment), match against copyright years like2000–2010(unicode en-dash) the same way that we would for2000-2010(ASCII dash).Detail
Relates