diff --git a/autohooks/api/__init__.py b/autohooks/api/__init__.py index e286b2b6..46ab294c 100644 --- a/autohooks/api/__init__.py +++ b/autohooks/api/__init__.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . """ Main Plugin API """ diff --git a/autohooks/api/git.py b/autohooks/api/git.py index d58f3c64..99fa7da1 100644 --- a/autohooks/api/git.py +++ b/autohooks/api/git.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . """ Plugin API for handling git related tasks diff --git a/autohooks/api/path.py b/autohooks/api/path.py index 8215fcfa..352e3dd8 100644 --- a/autohooks/api/path.py +++ b/autohooks/api/path.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . """ Plugin API for path checking """ diff --git a/autohooks/cli/__init__.py b/autohooks/cli/__init__.py index 75668527..74b2a329 100644 --- a/autohooks/cli/__init__.py +++ b/autohooks/cli/__init__.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . import argparse import sys diff --git a/autohooks/cli/activate.py b/autohooks/cli/activate.py index 84680c31..634ee50f 100644 --- a/autohooks/cli/activate.py +++ b/autohooks/cli/activate.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . from argparse import Namespace diff --git a/autohooks/cli/check.py b/autohooks/cli/check.py index 965846c7..ba3b1082 100644 --- a/autohooks/cli/check.py +++ b/autohooks/cli/check.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . from argparse import Namespace from pathlib import Path diff --git a/autohooks/cli/plugins.py b/autohooks/cli/plugins.py index 3c9ad56b..84aebd3e 100644 --- a/autohooks/cli/plugins.py +++ b/autohooks/cli/plugins.py @@ -1,19 +1,7 @@ -# Copyright (C) 2022 Greenbone AG +# SPDX-FileCopyrightText: 2022-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . from argparse import Namespace from typing import Iterable diff --git a/autohooks/config.py b/autohooks/config.py index 595a0a1e..a6f80fc6 100644 --- a/autohooks/config.py +++ b/autohooks/config.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . from pathlib import Path from typing import Any, Dict, List, Optional diff --git a/autohooks/hooks.py b/autohooks/hooks.py index 0081d670..f2a1ef61 100644 --- a/autohooks/hooks.py +++ b/autohooks/hooks.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . import re from pathlib import Path diff --git a/autohooks/precommit/__init__.py b/autohooks/precommit/__init__.py index c956a013..8538199b 100644 --- a/autohooks/precommit/__init__.py +++ b/autohooks/precommit/__init__.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . from .run import run diff --git a/autohooks/precommit/run.py b/autohooks/precommit/run.py index 55eda700..563a78ad 100644 --- a/autohooks/precommit/run.py +++ b/autohooks/precommit/run.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . import importlib import inspect diff --git a/autohooks/settings.py b/autohooks/settings.py index 01305783..0777f841 100644 --- a/autohooks/settings.py +++ b/autohooks/settings.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . from dataclasses import dataclass, field from enum import Enum diff --git a/autohooks/template.py b/autohooks/template.py index 64d5b0e2..765c3e6f 100644 --- a/autohooks/template.py +++ b/autohooks/template.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . from pathlib import Path from string import Template diff --git a/autohooks/terminal.py b/autohooks/terminal.py index 628473b3..7cf696e5 100644 --- a/autohooks/terminal.py +++ b/autohooks/terminal.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . from typing import Optional diff --git a/autohooks/utils.py b/autohooks/utils.py index 5f7fed57..2a418aaf 100644 --- a/autohooks/utils.py +++ b/autohooks/utils.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . import shlex import subprocess diff --git a/autohooks/version.py b/autohooks/version.py index 3b32f329..8411e559 100644 --- a/autohooks/version.py +++ b/autohooks/version.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . from autohooks.__version__ import __version__ as _current_version diff --git a/tests/__init__.py b/tests/__init__.py index 73d695b9..1a9d9564 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,20 +1,7 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2022 Greenbone AG +# SPDX-FileCopyrightText: 2022-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . import os import sys diff --git a/tests/api/__init__.py b/tests/api/__init__.py index 83e70fa0..cf8433bf 100644 --- a/tests/api/__init__.py +++ b/tests/api/__init__.py @@ -1,17 +1,4 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2022 Greenbone AG +# SPDX-FileCopyrightText: 2022-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . diff --git a/tests/api/git/__init__.py b/tests/api/git/__init__.py index 22a0bf2d..74895cdf 100644 --- a/tests/api/git/__init__.py +++ b/tests/api/git/__init__.py @@ -1,19 +1,7 @@ -# Copyright (C) 2022 Greenbone AG +# SPDX-FileCopyrightText: 2022-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . import random import unittest diff --git a/tests/api/git/test_diff.py b/tests/api/git/test_diff.py index 86a228fd..723363e4 100644 --- a/tests/api/git/test_diff.py +++ b/tests/api/git/test_diff.py @@ -1,19 +1,7 @@ -# Copyright (C) 2022 Greenbone AG +# SPDX-FileCopyrightText: 2022-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . from autohooks.api.git import StatusEntry, get_diff from tests import tempgitdir diff --git a/tests/api/git/test_stash.py b/tests/api/git/test_stash.py index cde70f20..2b7ca8c5 100644 --- a/tests/api/git/test_stash.py +++ b/tests/api/git/test_stash.py @@ -1,19 +1,7 @@ -# Copyright (C) 2022 Greenbone AG +# SPDX-FileCopyrightText: 2022-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . from autohooks.api.git import Status, get_status, stash_unstaged_changes from tests import tempgitdir diff --git a/tests/api/git/test_status.py b/tests/api/git/test_status.py index 58d063f8..1815da8c 100644 --- a/tests/api/git/test_status.py +++ b/tests/api/git/test_status.py @@ -1,19 +1,7 @@ -# Copyright (C) 2022 Greenbone AG +# SPDX-FileCopyrightText: 2022-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . import os import unittest diff --git a/tests/api/test_path.py b/tests/api/test_path.py index 408382a5..d558183d 100644 --- a/tests/api/test_path.py +++ b/tests/api/test_path.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . import unittest from pathlib import Path diff --git a/tests/api/test_terminal.py b/tests/api/test_terminal.py index 7fef660e..6a0eb703 100644 --- a/tests/api/test_terminal.py +++ b/tests/api/test_terminal.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . import unittest from unittest.mock import Mock diff --git a/tests/cli/__init__.py b/tests/cli/__init__.py index e1fd3765..cf8433bf 100644 --- a/tests/cli/__init__.py +++ b/tests/cli/__init__.py @@ -1,16 +1,4 @@ -# Copyright (C) 2022 Greenbone AG +# SPDX-FileCopyrightText: 2022-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . diff --git a/tests/cli/test_activate.py b/tests/cli/test_activate.py index 0c331734..4eae8886 100644 --- a/tests/cli/test_activate.py +++ b/tests/cli/test_activate.py @@ -1,19 +1,7 @@ -# Copyright (C) 2022 Greenbone AG +# SPDX-FileCopyrightText: 2022-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . import unittest diff --git a/tests/cli/test_check.py b/tests/cli/test_check.py index 123451ba..339625b7 100644 --- a/tests/cli/test_check.py +++ b/tests/cli/test_check.py @@ -1,19 +1,7 @@ -# Copyright (C) 2022 Greenbone AG +# SPDX-FileCopyrightText: 2022-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . import sys import unittest diff --git a/tests/cli/test_plugins.py b/tests/cli/test_plugins.py index 1e035a37..bb7cb9c9 100644 --- a/tests/cli/test_plugins.py +++ b/tests/cli/test_plugins.py @@ -1,19 +1,7 @@ -# Copyright (C) 2022 Greenbone AG +# SPDX-FileCopyrightText: 2022-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . import unittest from argparse import Namespace diff --git a/tests/precommit/__init__.py b/tests/precommit/__init__.py index e1fd3765..cf8433bf 100644 --- a/tests/precommit/__init__.py +++ b/tests/precommit/__init__.py @@ -1,16 +1,4 @@ -# Copyright (C) 2022 Greenbone AG +# SPDX-FileCopyrightText: 2022-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . diff --git a/tests/precommit/test_run.py b/tests/precommit/test_run.py index 9ed2419f..8f204ae1 100644 --- a/tests/precommit/test_run.py +++ b/tests/precommit/test_run.py @@ -1,19 +1,7 @@ -# Copyright (C) 2022 Greenbone AG +# SPDX-FileCopyrightText: 2022-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . import unittest diff --git a/tests/test_config.py b/tests/test_config.py index 23151983..90281078 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . import unittest from pathlib import Path diff --git a/tests/test_hooks.py b/tests/test_hooks.py index 130bb66b..45174905 100644 --- a/tests/test_hooks.py +++ b/tests/test_hooks.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . import os import tempfile diff --git a/tests/test_settings.py b/tests/test_settings.py index 7695bedb..ff931881 100644 --- a/tests/test_settings.py +++ b/tests/test_settings.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . # pylint: disable=invalid-name diff --git a/tests/test_template.py b/tests/test_template.py index 4a9b1c1e..9a69f453 100644 --- a/tests/test_template.py +++ b/tests/test_template.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . import unittest diff --git a/tests/test_terminal.py b/tests/test_terminal.py index 832d2763..cede44e3 100644 --- a/tests/test_terminal.py +++ b/tests/test_terminal.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . # pylint: disable=invalid-name, protected-access diff --git a/tests/test_utils.py b/tests/test_utils.py index 8697e18a..0836531d 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1,19 +1,7 @@ -# Copyright (C) 2019-2022 Greenbone AG +# SPDX-FileCopyrightText: 2019-2024 Greenbone AG # # SPDX-License-Identifier: GPL-3.0-or-later # -# This program 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. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . import os import subprocess