From 585951ea78dc9df9377533f32868b8f94716d599 Mon Sep 17 00:00:00 2001 From: dutta-alankar Date: Sun, 28 Apr 2024 09:43:36 +0200 Subject: [PATCH 1/7] [FIX] Lines of code action --- .github/workflows/lines_of_code.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lines_of_code.yml b/.github/workflows/lines_of_code.yml index 859dfe9..e2c1288 100644 --- a/.github/workflows/lines_of_code.yml +++ b/.github/workflows/lines_of_code.yml @@ -1,7 +1,7 @@ name: Count lines of code on: push: - branches: [main] + branches: [main, dev] jobs: lines_of_code_job: @@ -18,7 +18,7 @@ jobs: debug: true directory: ./astro_plasma badge: ./misc/lines_of_code.svg - ignore: cloudy-codes/|example-scripts/requirements/|README + # ignore: cloudy-codes/|example-scripts/|requirements/|README - name: Print the output run: | From 7b873221c6247b780a514b308ca0b522197aada0 Mon Sep 17 00:00:00 2001 From: Alankar Dutta Date: Sun, 28 Apr 2024 13:25:46 +0530 Subject: [PATCH 2/7] Update lines_of_code.yml --- .github/workflows/lines_of_code.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lines_of_code.yml b/.github/workflows/lines_of_code.yml index e2c1288..db10f93 100644 --- a/.github/workflows/lines_of_code.yml +++ b/.github/workflows/lines_of_code.yml @@ -11,14 +11,15 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Launch the local action + - name: Count lines of code uses: shadowmoose/GHA-LoC-Badge@1.0.0 id: badge with: debug: true directory: ./astro_plasma badge: ./misc/lines_of_code.svg - # ignore: cloudy-codes/|example-scripts/|requirements/|README + ignore: data + #|README - name: Print the output run: | From 0f9664debc9187c547182d2a5ccfae4110bf9b78 Mon Sep 17 00:00:00 2001 From: Alankar Dutta Date: Sun, 28 Apr 2024 13:35:51 +0530 Subject: [PATCH 3/7] Update lines_of_code.yml --- .github/workflows/lines_of_code.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lines_of_code.yml b/.github/workflows/lines_of_code.yml index db10f93..306afa7 100644 --- a/.github/workflows/lines_of_code.yml +++ b/.github/workflows/lines_of_code.yml @@ -16,10 +16,9 @@ jobs: id: badge with: debug: true - directory: ./astro_plasma + directory: ./ badge: ./misc/lines_of_code.svg - ignore: data - #|README + ignore: misc|example-scripts|cloudy-codes|requirements|astro_plasma/data|README - name: Print the output run: | From 91fbabaccf76dafc1d0a0659b52077a12004ef97 Mon Sep 17 00:00:00 2001 From: Alankar Dutta Date: Sun, 28 Apr 2024 13:38:12 +0530 Subject: [PATCH 4/7] Update lines_of_code.yml --- .github/workflows/lines_of_code.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lines_of_code.yml b/.github/workflows/lines_of_code.yml index 306afa7..be23d06 100644 --- a/.github/workflows/lines_of_code.yml +++ b/.github/workflows/lines_of_code.yml @@ -18,7 +18,7 @@ jobs: debug: true directory: ./ badge: ./misc/lines_of_code.svg - ignore: misc|example-scripts|cloudy-codes|requirements|astro_plasma/data|README + ignore: misc|example-scripts|cloudy-codes|requirements|astro_plasma/data|README.md|codemeta.json|LICENSE|poetry.lock|poetry.toml|tests/sample_spectrum.txt - name: Print the output run: | From 6b811558162538d69dce36ebe90c92e985d0dc36 Mon Sep 17 00:00:00 2001 From: Alankar Dutta Date: Sun, 28 Apr 2024 13:39:19 +0530 Subject: [PATCH 5/7] Update lines_of_code.yml --- .github/workflows/lines_of_code.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lines_of_code.yml b/.github/workflows/lines_of_code.yml index be23d06..c6a2017 100644 --- a/.github/workflows/lines_of_code.yml +++ b/.github/workflows/lines_of_code.yml @@ -18,7 +18,7 @@ jobs: debug: true directory: ./ badge: ./misc/lines_of_code.svg - ignore: misc|example-scripts|cloudy-codes|requirements|astro_plasma/data|README.md|codemeta.json|LICENSE|poetry.lock|poetry.toml|tests/sample_spectrum.txt + ignore: misc|example-scripts|cloudy-codes|requirements|astro_plasma/data|README.md|codemeta.json|LICENSE|poetry.lock|poetry.toml|tests/sample_spectrum.txt|pyproject.toml - name: Print the output run: | From 34e4094aa8271427d4768a734e7f982c90acfe17 Mon Sep 17 00:00:00 2001 From: Alankar Dutta Date: Sun, 28 Apr 2024 13:40:29 +0530 Subject: [PATCH 6/7] [FIX] `lines_of_code.yml` trigger on push to `main` only --- .github/workflows/lines_of_code.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lines_of_code.yml b/.github/workflows/lines_of_code.yml index c6a2017..420aa36 100644 --- a/.github/workflows/lines_of_code.yml +++ b/.github/workflows/lines_of_code.yml @@ -1,7 +1,7 @@ name: Count lines of code on: push: - branches: [main, dev] + branches: [main] jobs: lines_of_code_job: From 7b87f41f2f2d835900e6dbfcbca576d0f143f08d Mon Sep 17 00:00:00 2001 From: dutta-alankar Date: Sun, 28 Apr 2024 12:07:58 +0200 Subject: [PATCH 7/7] [ENH] minor comments in database download to capture 429 error --- astro_plasma/core/download_database.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/astro_plasma/core/download_database.py b/astro_plasma/core/download_database.py index 61109db..c033446 100644 --- a/astro_plasma/core/download_database.py +++ b/astro_plasma/core/download_database.py @@ -22,7 +22,9 @@ def fetch_list_from_url(link_list_url: str) -> List[str]: + # print(link_list_url) response = requests.get(link_list_url, stream=True) + # print(response) links = response.content.decode("utf-8").split("\n") return links