From 21ebc6eeb61f1df379a3e66534fb2f8230c3e40e Mon Sep 17 00:00:00 2001 From: Federico Busetti <729029+febus982@users.noreply.github.com> Date: Fri, 26 Jan 2024 18:44:14 +0000 Subject: [PATCH] Add Copyright notice Signed-off-by: Federico Busetti <729029+febus982@users.noreply.github.com> --- mkdocs_macros_adr_summary/__init__.py | 20 +++++++++++++ mkdocs_macros_adr_summary/factory.py | 20 +++++++++++++ mkdocs_macros_adr_summary/interfaces.py | 20 +++++++++++++ mkdocs_macros_adr_summary/parser/__init__.py | 29 +++++++++++++++++++ mkdocs_macros_adr_summary/parser/base.py | 20 +++++++++++++ .../parser/exceptions.py | 20 +++++++++++++ mkdocs_macros_adr_summary/parser/madr3.py | 20 +++++++++++++ mkdocs_macros_adr_summary/parser/nygard.py | 20 +++++++++++++ mkdocs_macros_adr_summary/parser/types.py | 20 +++++++++++++ mkdocs_macros_adr_summary/plugin.py | 20 +++++++++++++ mkdocs_macros_adr_summary/renderer.py | 20 +++++++++++++ 11 files changed, 229 insertions(+) diff --git a/mkdocs_macros_adr_summary/__init__.py b/mkdocs_macros_adr_summary/__init__.py index ad92110..10a6e7b 100644 --- a/mkdocs_macros_adr_summary/__init__.py +++ b/mkdocs_macros_adr_summary/__init__.py @@ -1,3 +1,23 @@ +# Copyright (c) 2024 Federico Busetti <729029+febus982@users.noreply.github.com> +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. + from functools import partial from mkdocs_macros.plugin import MacrosPlugin diff --git a/mkdocs_macros_adr_summary/factory.py b/mkdocs_macros_adr_summary/factory.py index f00a1f9..a1107d8 100644 --- a/mkdocs_macros_adr_summary/factory.py +++ b/mkdocs_macros_adr_summary/factory.py @@ -1,3 +1,23 @@ +# Copyright (c) 2024 Federico Busetti <729029+febus982@users.noreply.github.com> +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. + from typing import Dict, Type from .interfaces import ADRParser, TYPE_ADRStyle diff --git a/mkdocs_macros_adr_summary/interfaces.py b/mkdocs_macros_adr_summary/interfaces.py index 3cdf2fc..a01dc1d 100644 --- a/mkdocs_macros_adr_summary/interfaces.py +++ b/mkdocs_macros_adr_summary/interfaces.py @@ -1,3 +1,23 @@ +# Copyright (c) 2024 Federico Busetti <729029+febus982@users.noreply.github.com> +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. + from abc import ABC, abstractmethod from dataclasses import dataclass from datetime import date diff --git a/mkdocs_macros_adr_summary/parser/__init__.py b/mkdocs_macros_adr_summary/parser/__init__.py index e65f608..2ec6f8b 100644 --- a/mkdocs_macros_adr_summary/parser/__init__.py +++ b/mkdocs_macros_adr_summary/parser/__init__.py @@ -1,2 +1,31 @@ +# Copyright (c) 2024 Federico Busetti <729029+febus982@users.noreply.github.com> +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. + +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# from .madr3 import MADR3Parser from .nygard import NygardParser diff --git a/mkdocs_macros_adr_summary/parser/base.py b/mkdocs_macros_adr_summary/parser/base.py index 47e1496..5fb71ed 100644 --- a/mkdocs_macros_adr_summary/parser/base.py +++ b/mkdocs_macros_adr_summary/parser/base.py @@ -1,3 +1,23 @@ +# Copyright (c) 2024 Federico Busetti <729029+febus982@users.noreply.github.com> +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. + from abc import ABC, abstractmethod from datetime import date from pathlib import Path diff --git a/mkdocs_macros_adr_summary/parser/exceptions.py b/mkdocs_macros_adr_summary/parser/exceptions.py index 12ce38d..c89c211 100644 --- a/mkdocs_macros_adr_summary/parser/exceptions.py +++ b/mkdocs_macros_adr_summary/parser/exceptions.py @@ -1,3 +1,23 @@ +# Copyright (c) 2024 Federico Busetti <729029+febus982@users.noreply.github.com> +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. + from pathlib import Path diff --git a/mkdocs_macros_adr_summary/parser/madr3.py b/mkdocs_macros_adr_summary/parser/madr3.py index a62f266..f55720a 100644 --- a/mkdocs_macros_adr_summary/parser/madr3.py +++ b/mkdocs_macros_adr_summary/parser/madr3.py @@ -1,3 +1,23 @@ +# Copyright (c) 2024 Federico Busetti <729029+febus982@users.noreply.github.com> +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. + from datetime import date from typing import Any, Dict, Optional, Sequence, Tuple diff --git a/mkdocs_macros_adr_summary/parser/nygard.py b/mkdocs_macros_adr_summary/parser/nygard.py index ab2f4e3..5e53f09 100644 --- a/mkdocs_macros_adr_summary/parser/nygard.py +++ b/mkdocs_macros_adr_summary/parser/nygard.py @@ -1,3 +1,23 @@ +# Copyright (c) 2024 Federico Busetti <729029+febus982@users.noreply.github.com> +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. + from datetime import date, datetime from typing import Any, Dict, List, Optional, Sequence, Tuple diff --git a/mkdocs_macros_adr_summary/parser/types.py b/mkdocs_macros_adr_summary/parser/types.py index 877667c..c9bb1d8 100644 --- a/mkdocs_macros_adr_summary/parser/types.py +++ b/mkdocs_macros_adr_summary/parser/types.py @@ -1,3 +1,23 @@ +# Copyright (c) 2024 Federico Busetti <729029+febus982@users.noreply.github.com> +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. + from typing import List, Tuple from mistune import BlockState diff --git a/mkdocs_macros_adr_summary/plugin.py b/mkdocs_macros_adr_summary/plugin.py index 5f5fc50..90c8dad 100644 --- a/mkdocs_macros_adr_summary/plugin.py +++ b/mkdocs_macros_adr_summary/plugin.py @@ -1,3 +1,23 @@ +# Copyright (c) 2024 Federico Busetti <729029+febus982@users.noreply.github.com> +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. + import os import re from pathlib import Path diff --git a/mkdocs_macros_adr_summary/renderer.py b/mkdocs_macros_adr_summary/renderer.py index 9205d07..0165adf 100644 --- a/mkdocs_macros_adr_summary/renderer.py +++ b/mkdocs_macros_adr_summary/renderer.py @@ -1,3 +1,23 @@ +# Copyright (c) 2024 Federico Busetti <729029+febus982@users.noreply.github.com> +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. + from pathlib import Path from typing import Iterable, Optional