diff --git a/comment_spell_check.py b/comment_spell_check.py index d8c7a11..1c9c25f 100755 --- a/comment_spell_check.py +++ b/comment_spell_check.py @@ -1,5 +1,23 @@ #!/usr/bin/env python3 +# ========================================================================== +# +# Copyright NumFOCUS +# +# 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.txt +# +# 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. +# +# ==========================================================================*/ + import sys import os import fnmatch diff --git a/pyproject.toml b/pyproject.toml index 13f8211..308a147 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,10 +9,11 @@ authors = [ ] description = "A script to automatically spell checks comments of a codebase." readme = "README.md" +license = {file = "LICENSE"} requires-python = ">=3.8" classifiers = [ "Programming Language :: Python :: 3", - "License :: OSI Approved :: MIT License", + "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", ] dynamic = ["dependencies", "version"] diff --git a/tests/test_comment_spell_check.py b/tests/test_comment_spell_check.py index f22b3bf..63f396a 100644 --- a/tests/test_comment_spell_check.py +++ b/tests/test_comment_spell_check.py @@ -1,3 +1,21 @@ +# ========================================================================== +# +# Copyright NumFOCUS +# +# 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.txt +# +# 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. +# +# ==========================================================================*/ + import unittest import subprocess diff --git a/utils/itk_crawl.py b/utils/itk_crawl.py index a59b1e4..acbe13f 100755 --- a/utils/itk_crawl.py +++ b/utils/itk_crawl.py @@ -1,5 +1,23 @@ #! /usr/bin/env python +# ========================================================================== +# +# Copyright NumFOCUS +# +# 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.txt +# +# 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. +# +# ==========================================================================*/ + import itk wrds = dir(itk) diff --git a/utils/myspell.py b/utils/myspell.py index 41e752e..ed28440 100755 --- a/utils/myspell.py +++ b/utils/myspell.py @@ -1,5 +1,23 @@ #! /usr/bin/env python +# ========================================================================== +# +# Copyright NumFOCUS +# +# 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.txt +# +# 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. +# +# ==========================================================================*/ + import sys from enchant.checker import SpellChecker from enchant.tokenize import EmailFilter, URLFilter diff --git a/utils/sitk_crawl.py b/utils/sitk_crawl.py index bd2cd5f..1449e5c 100755 --- a/utils/sitk_crawl.py +++ b/utils/sitk_crawl.py @@ -1,5 +1,23 @@ #! /usr/bin/env python +# ========================================================================== +# +# Copyright NumFOCUS +# +# 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.txt +# +# 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. +# +# ==========================================================================*/ + import SimpleITK as sitk wrds = dir(sitk)