diff --git a/.flake8 b/.flake8 index 31a787d5..54c886f2 100644 --- a/.flake8 +++ b/.flake8 @@ -18,3 +18,26 @@ ignore = ANN101,ANN102 # ignore ANN401 for dynamically typed *args and **kwargs ANN401 + +## https://pypi.org/project/flake8-copyright-validator/ +lines-to-exclude = + '#!/usr/bin/env python' + +## https://pypi.org/project/flake8-copyright-validator/ +copyright-text = + '# This file is part of CycloneDX Python' + '#' + '# Licensed under the Apache License, Version 2.0 (the "License");' + '# you may not use this file except in compliance with the License.' + '# You may obtain a copy of the License at' + '#' + '# http://www.apache.org/licenses/LICENSE-2.0' + '#' + '# Unless required by applicable law or agreed to in writing, software' + '# distributed under the License is distributed on an "AS IS" BASIS,' + '# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.' + '# See the License for the specific language governing permissions and' + '# limitations under the License.' + '#' + '# SPDX-License-Identifier: Apache-2.0' + '# Copyright (c) OWASP Foundation. All Rights Reserved.' diff --git a/cyclonedx_py/__init__.py b/cyclonedx_py/__init__.py index f188e778..afbb430a 100644 --- a/cyclonedx_py/__init__.py +++ b/cyclonedx_py/__init__.py @@ -1,3 +1,5 @@ +# This file is part of CycloneDX Python +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/cyclonedx_py/__main__.py b/cyclonedx_py/__main__.py index 2508a510..366384f7 100644 --- a/cyclonedx_py/__main__.py +++ b/cyclonedx_py/__main__.py @@ -1,3 +1,5 @@ +# This file is part of CycloneDX Python +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/cyclonedx_py/_internal/__init__.py b/cyclonedx_py/_internal/__init__.py index 8f5c5397..0fec109a 100644 --- a/cyclonedx_py/_internal/__init__.py +++ b/cyclonedx_py/_internal/__init__.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyclonedx_py/_internal/cli.py b/cyclonedx_py/_internal/cli.py index 3f60ea2e..d8efc472 100644 --- a/cyclonedx_py/_internal/cli.py +++ b/cyclonedx_py/_internal/cli.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyclonedx_py/_internal/cli_common.py b/cyclonedx_py/_internal/cli_common.py index 6397f6fa..57028a31 100644 --- a/cyclonedx_py/_internal/cli_common.py +++ b/cyclonedx_py/_internal/cli_common.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyclonedx_py/_internal/environment.py b/cyclonedx_py/_internal/environment.py index 9ebe2e2f..5b67ce10 100644 --- a/cyclonedx_py/_internal/environment.py +++ b/cyclonedx_py/_internal/environment.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyclonedx_py/_internal/pipenv.py b/cyclonedx_py/_internal/pipenv.py index fa0360bc..b226c106 100644 --- a/cyclonedx_py/_internal/pipenv.py +++ b/cyclonedx_py/_internal/pipenv.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyclonedx_py/_internal/poetry.py b/cyclonedx_py/_internal/poetry.py index 6506c8ca..81be8648 100644 --- a/cyclonedx_py/_internal/poetry.py +++ b/cyclonedx_py/_internal/poetry.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyclonedx_py/_internal/requirements.py b/cyclonedx_py/_internal/requirements.py index 8ef785d6..e3634a78 100644 --- a/cyclonedx_py/_internal/requirements.py +++ b/cyclonedx_py/_internal/requirements.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyclonedx_py/_internal/utils/args.py b/cyclonedx_py/_internal/utils/args.py index bf576ce3..aa1c7398 100644 --- a/cyclonedx_py/_internal/utils/args.py +++ b/cyclonedx_py/_internal/utils/args.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyclonedx_py/_internal/utils/cdx.py b/cyclonedx_py/_internal/utils/cdx.py index dd670a63..b6abc6f5 100644 --- a/cyclonedx_py/_internal/utils/cdx.py +++ b/cyclonedx_py/_internal/utils/cdx.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyclonedx_py/_internal/utils/io.py b/cyclonedx_py/_internal/utils/io.py index c80d5f0c..e0c1de93 100644 --- a/cyclonedx_py/_internal/utils/io.py +++ b/cyclonedx_py/_internal/utils/io.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyclonedx_py/_internal/utils/license_trove_classifier.py b/cyclonedx_py/_internal/utils/license_trove_classifier.py index f1141d4b..c669ba3e 100644 --- a/cyclonedx_py/_internal/utils/license_trove_classifier.py +++ b/cyclonedx_py/_internal/utils/license_trove_classifier.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyclonedx_py/_internal/utils/mimetypes.py b/cyclonedx_py/_internal/utils/mimetypes.py index 4c446602..83ecd113 100644 --- a/cyclonedx_py/_internal/utils/mimetypes.py +++ b/cyclonedx_py/_internal/utils/mimetypes.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyclonedx_py/_internal/utils/packaging.py b/cyclonedx_py/_internal/utils/packaging.py index db73408f..f4be9849 100644 --- a/cyclonedx_py/_internal/utils/packaging.py +++ b/cyclonedx_py/_internal/utils/packaging.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyclonedx_py/_internal/utils/pep610.py b/cyclonedx_py/_internal/utils/pep610.py index 83196cfb..54c55699 100644 --- a/cyclonedx_py/_internal/utils/pep610.py +++ b/cyclonedx_py/_internal/utils/pep610.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyclonedx_py/_internal/utils/pep621.py b/cyclonedx_py/_internal/utils/pep621.py index 3c4e1085..f8caf6e9 100644 --- a/cyclonedx_py/_internal/utils/pep621.py +++ b/cyclonedx_py/_internal/utils/pep621.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyclonedx_py/_internal/utils/pep639.py b/cyclonedx_py/_internal/utils/pep639.py index 6aa73bf3..c9cb53ca 100644 --- a/cyclonedx_py/_internal/utils/pep639.py +++ b/cyclonedx_py/_internal/utils/pep639.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyclonedx_py/_internal/utils/poetry.py b/cyclonedx_py/_internal/utils/poetry.py index 9b2a9ad4..b09710b4 100644 --- a/cyclonedx_py/_internal/utils/poetry.py +++ b/cyclonedx_py/_internal/utils/poetry.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyclonedx_py/_internal/utils/pyproject.py b/cyclonedx_py/_internal/utils/pyproject.py index 5719936f..ee04726f 100644 --- a/cyclonedx_py/_internal/utils/pyproject.py +++ b/cyclonedx_py/_internal/utils/pyproject.py @@ -1,7 +1,24 @@ +# This file is part of CycloneDX Python +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) OWASP Foundation. All Rights Reserved. + + # use pyproject from pep621 # use pyproject from poetry implementation - from typing import TYPE_CHECKING, Any, Dict, Iterator from .pep621 import project2component, project2dependencies diff --git a/cyclonedx_py/_internal/utils/secret.py b/cyclonedx_py/_internal/utils/secret.py index 341dd278..92b81c53 100644 --- a/cyclonedx_py/_internal/utils/secret.py +++ b/cyclonedx_py/_internal/utils/secret.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cyclonedx_py/_internal/utils/toml.py b/cyclonedx_py/_internal/utils/toml.py index 47fe6e77..f52a3176 100644 --- a/cyclonedx_py/_internal/utils/toml.py +++ b/cyclonedx_py/_internal/utils/toml.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/pyproject.toml b/pyproject.toml index be2ce0be..8b2d9b30 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -101,6 +101,7 @@ pip = ">=23.0" pipenv = ">=2023.11.5" poetry = "^1.7" pdm = "^2.11" +flake8-copyright-validator = "^0.0.1" diff --git a/tests/__init__.py b/tests/__init__.py index c8baafd5..0205481e 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/_data/infiles/_helpers/local_pckages/a/module_a.py b/tests/_data/infiles/_helpers/local_pckages/a/module_a.py index e804bc1a..b049438e 100644 --- a/tests/_data/infiles/_helpers/local_pckages/a/module_a.py +++ b/tests/_data/infiles/_helpers/local_pckages/a/module_a.py @@ -1,3 +1,5 @@ +# This file is part of CycloneDX Python +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/tests/_data/infiles/_helpers/local_pckages/b/module_b.py b/tests/_data/infiles/_helpers/local_pckages/b/module_b.py index e23e0482..757a1f7b 100644 --- a/tests/_data/infiles/_helpers/local_pckages/b/module_b.py +++ b/tests/_data/infiles/_helpers/local_pckages/b/module_b.py @@ -1,3 +1,5 @@ +# This file is part of CycloneDX Python +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/tests/_data/infiles/_helpers/local_pckages/c/module_c.py b/tests/_data/infiles/_helpers/local_pckages/c/module_c.py index 8cc519ad..78821cf2 100644 --- a/tests/_data/infiles/_helpers/local_pckages/c/module_c.py +++ b/tests/_data/infiles/_helpers/local_pckages/c/module_c.py @@ -1,3 +1,5 @@ +# This file is part of CycloneDX Python +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/tests/_data/infiles/_helpers/pypi-proxy.py b/tests/_data/infiles/_helpers/pypi-proxy.py index 94f08255..57d333f4 100755 --- a/tests/_data/infiles/_helpers/pypi-proxy.py +++ b/tests/_data/infiles/_helpers/pypi-proxy.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/_data/infiles/environment/editable-self/init.py b/tests/_data/infiles/environment/editable-self/init.py index a3a7d080..1b66d213 100644 --- a/tests/_data/infiles/environment/editable-self/init.py +++ b/tests/_data/infiles/environment/editable-self/init.py @@ -1,3 +1,20 @@ +# This file is part of CycloneDX Python +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) OWASP Foundation. All Rights Reserved. + """ initialize this testbed. """ diff --git a/tests/_data/infiles/environment/local/init.py b/tests/_data/infiles/environment/local/init.py index 7bfa4f1d..e77d7977 100644 --- a/tests/_data/infiles/environment/local/init.py +++ b/tests/_data/infiles/environment/local/init.py @@ -1,3 +1,20 @@ +# This file is part of CycloneDX Python +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) OWASP Foundation. All Rights Reserved. + """ initialize this testbed. """ diff --git a/tests/_data/infiles/environment/no-deps/init.py b/tests/_data/infiles/environment/no-deps/init.py index 537b90ab..e04a6b6a 100644 --- a/tests/_data/infiles/environment/no-deps/init.py +++ b/tests/_data/infiles/environment/no-deps/init.py @@ -1,3 +1,20 @@ +# This file is part of CycloneDX Python +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) OWASP Foundation. All Rights Reserved. + """ initialize this testbed. """ diff --git a/tests/_data/infiles/environment/normalize-packagename/init.py b/tests/_data/infiles/environment/normalize-packagename/init.py index baca3940..da24bf0e 100644 --- a/tests/_data/infiles/environment/normalize-packagename/init.py +++ b/tests/_data/infiles/environment/normalize-packagename/init.py @@ -1,3 +1,20 @@ +# This file is part of CycloneDX Python +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) OWASP Foundation. All Rights Reserved. + """ initialize this testbed. """ diff --git a/tests/_data/infiles/environment/private-packages/init.py b/tests/_data/infiles/environment/private-packages/init.py index c0d68d68..fa285057 100644 --- a/tests/_data/infiles/environment/private-packages/init.py +++ b/tests/_data/infiles/environment/private-packages/init.py @@ -1,3 +1,20 @@ +# This file is part of CycloneDX Python +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) OWASP Foundation. All Rights Reserved. + """ initialize this testbed. """ diff --git a/tests/_data/infiles/environment/via-pdm/init.py b/tests/_data/infiles/environment/via-pdm/init.py index 7e68e313..6b05cebb 100644 --- a/tests/_data/infiles/environment/via-pdm/init.py +++ b/tests/_data/infiles/environment/via-pdm/init.py @@ -1,3 +1,20 @@ +# This file is part of CycloneDX Python +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) OWASP Foundation. All Rights Reserved. + """ initialize this testbed. """ diff --git a/tests/_data/infiles/environment/via-pipenv/init.py b/tests/_data/infiles/environment/via-pipenv/init.py index 2b89aaf1..20bb1d3b 100644 --- a/tests/_data/infiles/environment/via-pipenv/init.py +++ b/tests/_data/infiles/environment/via-pipenv/init.py @@ -1,3 +1,20 @@ +# This file is part of CycloneDX Python +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) OWASP Foundation. All Rights Reserved. + """ initialize this testbed. """ diff --git a/tests/_data/infiles/environment/via-poetry/dummy.py b/tests/_data/infiles/environment/via-poetry/dummy.py index e69de29b..e6cc2315 100644 --- a/tests/_data/infiles/environment/via-poetry/dummy.py +++ b/tests/_data/infiles/environment/via-poetry/dummy.py @@ -0,0 +1,16 @@ +# This file is part of CycloneDX Python +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) OWASP Foundation. All Rights Reserved. diff --git a/tests/_data/infiles/environment/via-poetry/init.py b/tests/_data/infiles/environment/via-poetry/init.py index 7decdf04..7634c7ae 100644 --- a/tests/_data/infiles/environment/via-poetry/init.py +++ b/tests/_data/infiles/environment/via-poetry/init.py @@ -1,3 +1,20 @@ +# This file is part of CycloneDX Python +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) OWASP Foundation. All Rights Reserved. + """ initialize this testbed. """ diff --git a/tests/_data/infiles/environment/with-extras/init.py b/tests/_data/infiles/environment/with-extras/init.py index c189c62e..307a3b35 100644 --- a/tests/_data/infiles/environment/with-extras/init.py +++ b/tests/_data/infiles/environment/with-extras/init.py @@ -1,3 +1,20 @@ +# This file is part of CycloneDX Python +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) OWASP Foundation. All Rights Reserved. + """ initialize this testbed. """ diff --git a/tests/_data/infiles/environment/with-license-file/init.py b/tests/_data/infiles/environment/with-license-file/init.py index 38a6cfcb..48c23beb 100644 --- a/tests/_data/infiles/environment/with-license-file/init.py +++ b/tests/_data/infiles/environment/with-license-file/init.py @@ -1,3 +1,20 @@ +# This file is part of CycloneDX Python +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) OWASP Foundation. All Rights Reserved. + """ initialize this testbed. """ diff --git a/tests/_data/infiles/environment/with-license-pep639/init.py b/tests/_data/infiles/environment/with-license-pep639/init.py index 3f9aa34d..bee6fe0d 100644 --- a/tests/_data/infiles/environment/with-license-pep639/init.py +++ b/tests/_data/infiles/environment/with-license-pep639/init.py @@ -1,3 +1,20 @@ +# This file is part of CycloneDX Python +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) OWASP Foundation. All Rights Reserved. + """ initialize this testbed. """ diff --git a/tests/_data/infiles/environment/with-license-text/init.py b/tests/_data/infiles/environment/with-license-text/init.py index 9998905e..4cb7c374 100644 --- a/tests/_data/infiles/environment/with-license-text/init.py +++ b/tests/_data/infiles/environment/with-license-text/init.py @@ -1,3 +1,20 @@ +# This file is part of CycloneDX Python +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) OWASP Foundation. All Rights Reserved. + """ initialize this testbed. """ diff --git a/tests/_data/infiles/environment/with-urls/init.py b/tests/_data/infiles/environment/with-urls/init.py index d0b1a257..52833bd3 100644 --- a/tests/_data/infiles/environment/with-urls/init.py +++ b/tests/_data/infiles/environment/with-urls/init.py @@ -1,3 +1,20 @@ +# This file is part of CycloneDX Python +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) OWASP Foundation. All Rights Reserved. + """ initialize this testbed. """ diff --git a/tests/functional/__init__.py b/tests/functional/__init__.py index c2926fb2..e6cc2315 100644 --- a/tests/functional/__init__.py +++ b/tests/functional/__init__.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/functional/test_license_trove_classifier.py b/tests/functional/test_license_trove_classifier.py index 9b554575..60e781fa 100644 --- a/tests/functional/test_license_trove_classifier.py +++ b/tests/functional/test_license_trove_classifier.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py index c2926fb2..e6cc2315 100644 --- a/tests/integration/__init__.py +++ b/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/integration/test_cli.py b/tests/integration/test_cli.py index 410bebb0..d92be20b 100644 --- a/tests/integration/test_cli.py +++ b/tests/integration/test_cli.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/integration/test_cli_environment.py b/tests/integration/test_cli_environment.py index e5ffdc3b..bbe24b4a 100644 --- a/tests/integration/test_cli_environment.py +++ b/tests/integration/test_cli_environment.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/integration/test_cli_pipenv.py b/tests/integration/test_cli_pipenv.py index 04041e7e..b03d26f4 100644 --- a/tests/integration/test_cli_pipenv.py +++ b/tests/integration/test_cli_pipenv.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/integration/test_cli_poetry.py b/tests/integration/test_cli_poetry.py index 8286b4e8..7877eafb 100644 --- a/tests/integration/test_cli_poetry.py +++ b/tests/integration/test_cli_poetry.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/integration/test_cli_requirements.py b/tests/integration/test_cli_requirements.py index 60cc19ef..1703ca4f 100644 --- a/tests/integration/test_cli_requirements.py +++ b/tests/integration/test_cli_requirements.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py index c2926fb2..e6cc2315 100644 --- a/tests/unit/__init__.py +++ b/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/unit/test_cli.py b/tests/unit/test_cli.py index aff2ff06..809f43d0 100644 --- a/tests/unit/test_cli.py +++ b/tests/unit/test_cli.py @@ -1,4 +1,4 @@ -# This file is part of CycloneDX Python Lib +# This file is part of CycloneDX Python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.