Skip to content

Standardize ASCII and line endings repo-wide; refresh codegen - #115

Merged
ptr727 merged 2 commits into
mainfrom
develop
Jun 5, 2026
Merged

Standardize ASCII and line endings repo-wide; refresh codegen#115
ptr727 merged 2 commits into
mainfrom
develop

Conversation

@ptr727

Copy link
Copy Markdown
Owner

Release of develop -> main. Two changes:

  • Standardize ASCII and .editorconfig line endings repo-wide; tighten doc conventions (Standardize ASCII and .editorconfig line endings repo-wide; tighten doc conventions #114) - replace typographic Unicode (em-dashes, arrows, <=, ellipsis) with ASCII across all tracked files; bring every file to its .editorconfig line ending; add the ruleset export/import + signing-order setup docs; add AGENTS rules (Character Set, Line Endings, current-state tense, ruleset-setup). Source edits are comments/docstrings/cosmetic-strings and line endings only - no logic change.
  • Update codegen files (Update codegen files #113).

Merge-commit (not squash) per the branching model.

The insertions/deletions count is dominated by line-ending normalization (whole-file churn under * -text); git diff --ignore-cr-at-eol main...develop isolates the real content edits.

ptr727-codegenBotand others added 2 commits June 5, 2026 05:43
This PR updates the codegen files.
Co-authored-by: ptr727-codegen[bot] <275599072+ptr727-codegen[bot]@users.noreply.github.com>
…oc conventions (#114)
Repository-wide text hygiene plus authoring-rule documentation. No logic
changes - source edits are in comments/docstrings/cosmetic strings and
line endings only.
## What
- **ASCII everywhere.** Replace em-dashes and other typographic Unicode
(arrows, `<=`, ellipsis, curly quotes) with ASCII across **all tracked
text files** - docs, workflows, `devcontainer.json`, `CodeGen/*.cs`, and
the PyPI package (comments/docstrings/cosmetic strings only). New AGENTS
"Character Set" rule; scientific symbols and developer-typed emoji are
the only exceptions.
- **`.editorconfig` line endings.** Bring every file into compliance
(CRLF for `.md`/`.cs`/XML/YAML/JSON/Windows-scripts, LF for `.sh`);
several files had drifted to LF. New AGENTS "Line Endings" rule.
- **Setup docs.** README + AGENTS: the ruleset export/import procedure
(delete classic protection, export/import `develop`/`main` rulesets via
`gh api`) and a signing-order warning.
- **Current-state tense.** README rewritten to describe what *is*, not
changes from a prior state; new AGENTS rule.
## Scope note
This started as a docs-only pass. Copilot's review correctly flagged
that the new ASCII rule was only half-applied - an earlier sweep had a
bug that skipped `.github/` and non-`.md` files. I extended it to the
whole repo so the rule and the tree are consistent. All source changes
are non-functional (EOL-preserving; the PyPI smoke build re-validates
the `PyPiLibrary` edits).
## Reviewing the diff
Line-ending normalization shows as whole-file churn under `* -text`;
`git diff --ignore-cr-at-eol` isolates the real content edits (small -
mostly `—` -> `-` in comments).
CopilotAI review requested due to automatic review settings June 5, 2026 16:39

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR is a develop -> main release merge that aligns the repository with the newly documented text-hygiene conventions (ASCII-only agent-authored text and .editorconfig-driven line endings) and refreshes generated codegen output.

Changes:

  • Normalize typographic Unicode to ASCII across docs, comments, workflow comments, and other non-functional text.
  • Normalize line endings across the repo to match .editorconfig (with resulting whole-file churn in many tracked files).
  • Refresh codegen output (CodeGen/CodeGen.cs) with a new generated timestamp.

Reviewed changes

Copilot reviewed 30 out of 31 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
README.mdAdds/expands template setup guidance (rulesets export/import, signing order) and standardizes ASCII punctuation.
PyPiLibrary/src/ptr727_projecttemplate_library/example.pyReplaces typographic Unicode in module docstring.
PyPiLibrary/src/ptr727_projecttemplate_library/_version.pyStandardizes docstring punctuation and arrow notation to ASCII.
PyPiLibrary/README.mdRepo-wide ASCII normalization and line ending normalization in Python template docs.
PyPiLibrary/pyproject.tomlStandardizes description/comments to ASCII.
PyPiLibrary/CODESTYLE.mdStandardizes punctuation/wording to ASCII across Python style guide.
HISTORY.mdLine ending normalization only.
docs/ssh-signing.mdStandardizes punctuation/notation to ASCII while preserving content.
docs/host-setup.mdStandardizes punctuation/notation to ASCII while preserving content.
docs/devcontainer.mdStandardizes punctuation/notation to ASCII while preserving content.
CODESTYLE.mdStandardizes punctuation/notation to ASCII in .NET style guide.
CodeGen/CommandLine.csComment-only ASCII normalization (no functional change).
CodeGen/CodeGenBuilder.csComment-only ASCII normalization (no functional change).
CodeGen/CodeGen.csUpdates generated timestamp output.
AGENTS.mdAdds explicit repo-wide conventions (ASCII, line endings, doc tense) and expands setup guidance.
.github/workflows/test-pull-request.ymlComment-only ASCII normalization / line ending normalization.
.github/workflows/run-periodic-codegen-pull-request.ymlComment-only ASCII normalization / line ending normalization.
.github/workflows/run-codegen-pull-request-task.ymlComment-only ASCII normalization / line ending normalization.
.github/workflows/publish-release.ymlComment-only ASCII normalization / line ending normalization.
.github/workflows/merge-bot-pull-request.ymlComment-only ASCII normalization / line ending normalization.
.github/workflows/get-version-task.ymlComment-only ASCII normalization / line ending normalization.
.github/workflows/build-release-task.ymlComment-only ASCII normalization / line ending normalization.
.github/workflows/build-pypilibrary-task.ymlComment-only ASCII normalization / line ending normalization.
.github/workflows/build-nugetlibrary-task.ymlComment-only ASCII normalization / line ending normalization.
.github/workflows/build-executable-task.ymlComment-only ASCII normalization / line ending normalization.
.github/workflows/build-docker-task.ymlComment-only ASCII normalization / line ending normalization.
.github/dependabot.ymlComment-only ASCII normalization / line ending normalization.
.github/copilot-instructions.mdStandardizes punctuation/notation to ASCII in Copilot runbook docs.
.devcontainer/python/post-create.shComment/error-message ASCII normalization only.
.devcontainer/python/devcontainer.jsonLine ending normalization only.
.devcontainer/dotnet/devcontainer.jsonLine ending normalization only.

Comment threadREADME.md
@ptr727
ptr727 merged commit e9d8d8a into mainJun 5, 2026
19 checks passed
Sign up for freeto 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.

2 participants

@ptr727