Skip to content

Commit 90f1e2b

Browse files
committed
Update apostrophe
Signed-off-by: Mihai Criveti <[email protected]>
1 parent 7b1a8ee commit 90f1e2b

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.github/tools/normalize_special_characters.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
".m", # Objective-C/MATLAB
116116
".pl", # Perl
117117
".pm", # Perl Module
118-
118+
119119
# Shell and scripts
120120
".sh", # Shell script
121121
".bash", # Bash script
@@ -124,7 +124,7 @@
124124
".ps1", # PowerShell
125125
".bat", # Batch file
126126
".cmd", # Command file
127-
127+
128128
# Data and config files
129129
".json", # JSON
130130
".yaml", # YAML
@@ -136,25 +136,25 @@
136136
".conf", # Config file
137137
".properties", # Properties file
138138
".env", # Environment file
139-
139+
140140
# Documentation and text
141141
".md", # Markdown
142142
".rst", # reStructuredText
143143
".txt", # Plain text
144144
".rtf", # Rich text
145145
".tex", # LaTeX
146146
".org", # Org-mode
147-
147+
148148
# Database
149149
".sql", # SQL
150150
".sqlite", # SQLite
151151
".psql", # PostgreSQL
152-
152+
153153
# Web and markup
154154
".svg", # SVG (text-based)
155155
".vue", # Vue.js
156156
".svelte", # Svelte
157-
157+
158158
# Build and project files
159159
".dockerfile", # Dockerfile
160160
".makefile", # Makefile
@@ -163,11 +163,11 @@
163163
".cmake", # CMake
164164
".gyp", # GYP
165165
".gypi", # GYP
166-
166+
167167
# Version control
168168
".gitignore", # Git ignore
169169
".gitattributes", # Git attributes
170-
170+
171171
# Without extension (common script files)
172172
"Dockerfile",
173173
"Makefile",
@@ -207,6 +207,7 @@
207207
# "Smart" single quotes & apos-like glyphs → plain apostrophe
208208
"'": "'", # U+2018 LEFT SINGLE QUOTATION MARK
209209
"'": "'", # U+2019 RIGHT SINGLE QUOTATION MARK
210+
"’": "'", # APOSTROPHE SINGLE QUOTATION MARK
210211
"‚": "'", # U+201A SINGLE LOW-9 QUOTATION MARK
211212
"‛": "'", # U+201B SINGLE HIGH-REVERSED-9 QUOTATION MARK
212213
"ʼ": "'", # U+02BC MODIFIER LETTER APOSTROPHE
@@ -534,15 +535,15 @@ def is_allowed_file(path: Path, allowed_extensions: Optional[Sequence[str]] = No
534535
True
535536
"""
536537
extensions = allowed_extensions if allowed_extensions is not None else DEFAULT_ALLOWED_EXTENSIONS
537-
538+
538539
# Check exact filename matches (for files like Dockerfile, Makefile, etc.)
539540
if path.name in extensions:
540541
return True
541-
542+
542543
# Check file extension
543544
if path.suffix.lower() in [ext.lower() for ext in extensions]:
544545
return True
545-
546+
546547
return False
547548

548549

@@ -804,4 +805,4 @@ def main(argv: Optional[Sequence[str]] = None) -> None: # noqa: C901
804805
# ---------------------------------------------------------------------------
805806

806807
if __name__ == "__main__":
807-
main()
808+
main()

0 commit comments

Comments
 (0)