Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
21 changes: 21 additions & 0 deletions .github/workflows/encoding-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Check File Encoding

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
check-encoding:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check UTF-8 Encoding
run: |
find . -type f \( -name "*.py" -o -name "*.md" -o -name "*.txt" \) -exec bash -c 'file -bi "$1" | grep -q "charset=utf-8" || echo "$1 is not UTF-8 encoded"' -- {} \;
if [ $? -ne 0 ]; then
exit 1
fi
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Converted to UTF-8 encoding
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents**
Expand Down