From 83bbdfd5c2754f3d94611fb04577c16cfbc27874 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Mon, 14 Sep 2026 12:11:38 +1000 Subject: [PATCH 1/2] Add copyright notice to the top of each .py file. --- src/isp_workbook_parser/__init__.py | 7 +++++++ src/isp_workbook_parser/config_model.py | 7 +++++++ src/isp_workbook_parser/custom_string_replacements.py | 7 +++++++ src/isp_workbook_parser/parser.py | 7 +++++++ src/isp_workbook_parser/read_table.py | 7 +++++++ src/isp_workbook_parser/sanitisers.py | 7 +++++++ tests/conftest.py | 7 +++++++ tests/test_packaged_table_configs.py | 7 +++++++ tests/test_read_table_functionality.py | 7 +++++++ tests/test_sanitisers.py | 7 +++++++ tests/test_validation.py | 7 +++++++ tests/test_workbook_sheets_exist_check.py | 7 +++++++ 12 files changed, 84 insertions(+) diff --git a/src/isp_workbook_parser/__init__.py b/src/isp_workbook_parser/__init__.py index f805487..92591b1 100644 --- a/src/isp_workbook_parser/__init__.py +++ b/src/isp_workbook_parser/__init__.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + import pandas as pd from .config_model import TableConfig as TableConfig diff --git a/src/isp_workbook_parser/config_model.py b/src/isp_workbook_parser/config_model.py index 801432b..625ad68 100644 --- a/src/isp_workbook_parser/config_model.py +++ b/src/isp_workbook_parser/config_model.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + from pathlib import Path from typing import Literal diff --git a/src/isp_workbook_parser/custom_string_replacements.py b/src/isp_workbook_parser/custom_string_replacements.py index 201d240..86e41c8 100644 --- a/src/isp_workbook_parser/custom_string_replacements.py +++ b/src/isp_workbook_parser/custom_string_replacements.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + typos_and_notes = { r"CCGT\d+": "CCGT", r"requirements_TAS\d+": "requirements_TAS", diff --git a/src/isp_workbook_parser/parser.py b/src/isp_workbook_parser/parser.py index 0623fd7..f0047f5 100644 --- a/src/isp_workbook_parser/parser.py +++ b/src/isp_workbook_parser/parser.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + import glob import os import warnings diff --git a/src/isp_workbook_parser/read_table.py b/src/isp_workbook_parser/read_table.py index 29babdd..88b628b 100644 --- a/src/isp_workbook_parser/read_table.py +++ b/src/isp_workbook_parser/read_table.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + import numpy as np import openpyxl import openpyxl.utils diff --git a/src/isp_workbook_parser/sanitisers.py b/src/isp_workbook_parser/sanitisers.py index 237875f..5d43825 100644 --- a/src/isp_workbook_parser/sanitisers.py +++ b/src/isp_workbook_parser/sanitisers.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + import re import numpy as np diff --git a/tests/conftest.py b/tests/conftest.py index c066682..fe28d21 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + import pandas as pd import pytest diff --git a/tests/test_packaged_table_configs.py b/tests/test_packaged_table_configs.py index 23382b3..1d1f639 100644 --- a/tests/test_packaged_table_configs.py +++ b/tests/test_packaged_table_configs.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + from pathlib import Path import pytest diff --git a/tests/test_read_table_functionality.py b/tests/test_read_table_functionality.py index abadcef..a046034 100644 --- a/tests/test_read_table_functionality.py +++ b/tests/test_read_table_functionality.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + from isp_workbook_parser.config_model import TableConfig diff --git a/tests/test_sanitisers.py b/tests/test_sanitisers.py index b214866..42094e9 100644 --- a/tests/test_sanitisers.py +++ b/tests/test_sanitisers.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + from pathlib import Path import pandas as pd diff --git a/tests/test_validation.py b/tests/test_validation.py index dc94355..5289fd3 100644 --- a/tests/test_validation.py +++ b/tests/test_validation.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + import re from typing import get_args diff --git a/tests/test_workbook_sheets_exist_check.py b/tests/test_workbook_sheets_exist_check.py index 9069fab..c29da09 100644 --- a/tests/test_workbook_sheets_exist_check.py +++ b/tests/test_workbook_sheets_exist_check.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + import pytest from isp_workbook_parser import Parser From f4cd42f71088d7d05426625eb963d6d64ec3ec5d Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Mon, 14 Sep 2026 16:55:33 +1000 Subject: [PATCH 2/2] Also fix noxfile.py. --- noxfile.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/noxfile.py b/noxfile.py index 07ac5b1..8129360 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,3 +1,10 @@ +# Copyright (C) 2026 University of New South Wales +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + import nox nox.options.default_venv_backend = "uv"