Skip to content

refactor(hygiene): crlf check splits severity — scripts vs cosmetic .py (#98)#99

Open
Jammy2211 wants to merge 1 commit into
mainfrom
feature/hygiene-crlf-severity
Open

refactor(hygiene): crlf check splits severity — scripts vs cosmetic .py (#98)#99
Jammy2211 wants to merge 1 commit into
mainfrom
feature/hygiene-crlf-severity

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Closes #98. The crlf mode lumped all .py and headlined 683 'debris', but the real functional risk is executable scripts (.sh + shebang-755 .py) — a CRLF shebang breaks on Linux/HPC. Library .py CRLF is cosmetic (Python universal newlines).

Now the ranked count is executable-script CRLF (live: 6 — PyAutoConf 4, PyAutoFit 1, PyAutoLens 1) with library .py CRLF (710) reported separately as cosmetic ("leave, or '* text=auto' going forward"). Stops crying wolf; the default ranking self-corrects (recommends tidy 43 over crlf 6). Conductor-only; AGENTS.md row + usage + veneer updated. Tests 42 pass, review CLEAN.

Follow-up (separate task): normalise the 6 scripts + add .gitattributes eol=lf guards — the right-sized HPC fix.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Tw3EwV55k6VzxorYng3Kfn

…vs cosmetic .py (#98)

The crlf mode lumped all .py and headlined 683 "debris", but the real functional
risk is executable scripts (.sh + shebang-755 .py) where a CRLF shebang
(#!/bin/bash\r) breaks execution on Linux/HPC. Library .py CRLF is cosmetic
(Python universal newlines).

Now the ranked count is the executable-script CRLF (LIVE: 6 — PyAutoConf 4,
PyAutoFit 1, PyAutoLens 1) with library .py CRLF (710) reported separately as
cosmetic ("leave, or '* text=auto' going forward"). Stops the check crying wolf
on 710 harmless files; the default ranking self-corrects (recommends tidy 43 over
crlf 6). AGENTS.md row + usage comment + /hygiene veneer updated.

Follow-up (separate task): normalise the 6 scripts + add .gitattributes eol=lf
guards across repos — the real, right-sized HPC fix.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tw3EwV55k6VzxorYng3Kfn
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.

refactor(hygiene): crlf check — split severity (scripts break on HPC vs cosmetic .py)

1 participant