From 7f89371da3ac67e525c1ac12773dd13971cfd5d6 Mon Sep 17 00:00:00 2001 From: joyvelasquez Date: Wed, 23 Sep 2026 18:22:41 -0400 Subject: [PATCH 1/2] Exclude tests/data from pre-commit and fix misplaced ruff suppression --- src/pyfaradaycup/pipeline/ccsds_reader_pipeline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyfaradaycup/pipeline/ccsds_reader_pipeline.py b/src/pyfaradaycup/pipeline/ccsds_reader_pipeline.py index d0ec20e..72eba78 100644 --- a/src/pyfaradaycup/pipeline/ccsds_reader_pipeline.py +++ b/src/pyfaradaycup/pipeline/ccsds_reader_pipeline.py @@ -662,8 +662,8 @@ def get_layout(apid, verbose=False): # ruff:ignore[ANN001, ANN201, C901, D103, print(f"APID {hex(apid)[2:]} Format Found".upper()) # ruff:ignore[FURB116, T201] thisapid = apid_obj() thisapid.apid = apid # ty: ignore[unresolved-attribute] - line = ( - "" # so that the while loop will start out ok # ruff:ignore[PLW2901] + line = ( # ruff:ignore[PLW2901] + "" # so that the while loop will start out ok ) while line[0:4] != "APID": i += 1 # ruff:ignore[PLW2901] From d9423d3d763f19dbba0d94a87ea15173dde8a55e Mon Sep 17 00:00:00 2001 From: joyvelasquez Date: Thu, 24 Sep 2026 11:58:03 -0400 Subject: [PATCH 2/2] Exclude tests/data from pre-commit hooks --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bd46a6b..2befecd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,6 +17,8 @@ # pre-commit.ci configuration: https://pre-commit.ci/#configuration # pre-commit docs: https://pre-commit.com/#adding-pre-commit-plugins-to-your-project +exclude: ^tests/data/ + ci: autofix_prs: false autoupdate_schedule: monthly