From 83e47bd247d49aa28c1ba74e6fe7a517078ea3c5 Mon Sep 17 00:00:00 2001 From: Dale Seo <5466341+DaleSeo@users.noreply.github.com> Date: Fri, 16 Aug 2024 23:54:23 +0000 Subject: [PATCH 1/4] ci: add integration workflow to check if files end in a newline character --- .github/workflows/integration.yaml | 11 +++++++++++ .linelint.yml | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/integration.yaml create mode 100644 .linelint.yml diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml new file mode 100644 index 000000000..cd481d9a9 --- /dev/null +++ b/.github/workflows/integration.yaml @@ -0,0 +1,11 @@ +name: 🔄 Integration + +on: + pull_request: + +jobs: + linelint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: fernandrone/linelint@0.0.6 diff --git a/.linelint.yml b/.linelint.yml new file mode 100644 index 000000000..75a08500e --- /dev/null +++ b/.linelint.yml @@ -0,0 +1,18 @@ +# 'true' will fix files +autofix: false + +# list of paths to ignore, uses gitignore syntaxes (executes before any rule) +ignore: + - "*.md" + +rules: + # checks if file ends in a newline character + end-of-file: + # set to true to enable this rule + enable: true + + # set to true to disable autofix (if enabled globally) + disable-autofix: false + + # if true also checks if file ends in a single newline character + single-new-line: false From 27eaf11dcd4b3580bd2238319870f98081c16514 Mon Sep 17 00:00:00 2001 From: Dale Seo Date: Fri, 16 Aug 2024 22:45:06 -0400 Subject: [PATCH 2/4] add bad file --- 3sum/dale.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 3sum/dale.py diff --git a/3sum/dale.py b/3sum/dale.py new file mode 100644 index 000000000..84a2c2a8d --- /dev/null +++ b/3sum/dale.py @@ -0,0 +1 @@ +print("dale") \ No newline at end of file From 9fa2ea2ada941e09c3d7cac7e33af10888069069 Mon Sep 17 00:00:00 2001 From: Dale Seo Date: Fri, 16 Aug 2024 22:50:33 -0400 Subject: [PATCH 3/4] add new line --- 3sum/dale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3sum/dale.py b/3sum/dale.py index 84a2c2a8d..309c24b9d 100644 --- a/3sum/dale.py +++ b/3sum/dale.py @@ -1 +1 @@ -print("dale") \ No newline at end of file +print("dale") From bf63d58ac3d4fcb1e9f1d929f10f78cdc07a248b Mon Sep 17 00:00:00 2001 From: Dale Seo Date: Fri, 16 Aug 2024 22:52:04 -0400 Subject: [PATCH 4/4] remove new line --- 3sum/dale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3sum/dale.py b/3sum/dale.py index 309c24b9d..84a2c2a8d 100644 --- a/3sum/dale.py +++ b/3sum/dale.py @@ -1 +1 @@ -print("dale") +print("dale") \ No newline at end of file