From: Dario Faccin Date: Fri, 31 Mar 2023 14:56:38 +0000 (+0200) Subject: Remove checks for copyright in charms X-Git-Tag: v13.0.1~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=542b2f8fb3c159e7f20150ad5814872bed02cc7c;p=osm%2Fdevops.git Remove checks for copyright in charms This patch removes the flake8 copyright plugin and configuration. Change-Id: I65e362748e16efbc48055370f8f1590d4910c000 Signed-off-by: Dario Faccin (cherry picked from commit 99325bd3a2891df4b88329931535619e96ae28ec) --- diff --git a/installers/charm/juju-simplestreams-operator/pyproject.toml b/installers/charm/juju-simplestreams-operator/pyproject.toml index d0d4a5bc..16cf0f4b 100644 --- a/installers/charm/juju-simplestreams-operator/pyproject.toml +++ b/installers/charm/juju-simplestreams-operator/pyproject.toml @@ -50,7 +50,3 @@ ignore = ["W503", "E501", "D107"] # D100, D101, D102, D103: Ignore missing docstrings in tests per-file-ignores = ["tests/*:D100,D101,D102,D103,D104"] docstring-convention = "google" -# Check for properly formatted copyright header in each file -copyright-check = "True" -copyright-author = "Canonical Ltd." -copyright-regexp = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+%(author)s" diff --git a/installers/charm/juju-simplestreams-operator/tox.ini b/installers/charm/juju-simplestreams-operator/tox.ini index 275137c3..0268da8a 100644 --- a/installers/charm/juju-simplestreams-operator/tox.ini +++ b/installers/charm/juju-simplestreams-operator/tox.ini @@ -53,7 +53,6 @@ deps = black flake8 flake8-docstrings - flake8-copyright flake8-builtins pyproject-flake8 pep8-naming diff --git a/installers/charm/osm-lcm/pyproject.toml b/installers/charm/osm-lcm/pyproject.toml index d0d4a5bc..16cf0f4b 100644 --- a/installers/charm/osm-lcm/pyproject.toml +++ b/installers/charm/osm-lcm/pyproject.toml @@ -50,7 +50,3 @@ ignore = ["W503", "E501", "D107"] # D100, D101, D102, D103: Ignore missing docstrings in tests per-file-ignores = ["tests/*:D100,D101,D102,D103,D104"] docstring-convention = "google" -# Check for properly formatted copyright header in each file -copyright-check = "True" -copyright-author = "Canonical Ltd." -copyright-regexp = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+%(author)s" diff --git a/installers/charm/osm-lcm/tox.ini b/installers/charm/osm-lcm/tox.ini index 275137c3..0268da8a 100644 --- a/installers/charm/osm-lcm/tox.ini +++ b/installers/charm/osm-lcm/tox.ini @@ -53,7 +53,6 @@ deps = black flake8 flake8-docstrings - flake8-copyright flake8-builtins pyproject-flake8 pep8-naming diff --git a/installers/charm/osm-mon/pyproject.toml b/installers/charm/osm-mon/pyproject.toml index d0d4a5bc..16cf0f4b 100644 --- a/installers/charm/osm-mon/pyproject.toml +++ b/installers/charm/osm-mon/pyproject.toml @@ -50,7 +50,3 @@ ignore = ["W503", "E501", "D107"] # D100, D101, D102, D103: Ignore missing docstrings in tests per-file-ignores = ["tests/*:D100,D101,D102,D103,D104"] docstring-convention = "google" -# Check for properly formatted copyright header in each file -copyright-check = "True" -copyright-author = "Canonical Ltd." -copyright-regexp = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+%(author)s" diff --git a/installers/charm/osm-mon/tox.ini b/installers/charm/osm-mon/tox.ini index 56c095b5..b8effcef 100644 --- a/installers/charm/osm-mon/tox.ini +++ b/installers/charm/osm-mon/tox.ini @@ -53,7 +53,6 @@ deps = black flake8 flake8-docstrings - flake8-copyright flake8-builtins pyproject-flake8 pep8-naming diff --git a/installers/charm/osm-nbi/pyproject.toml b/installers/charm/osm-nbi/pyproject.toml index d0d4a5bc..16cf0f4b 100644 --- a/installers/charm/osm-nbi/pyproject.toml +++ b/installers/charm/osm-nbi/pyproject.toml @@ -50,7 +50,3 @@ ignore = ["W503", "E501", "D107"] # D100, D101, D102, D103: Ignore missing docstrings in tests per-file-ignores = ["tests/*:D100,D101,D102,D103,D104"] docstring-convention = "google" -# Check for properly formatted copyright header in each file -copyright-check = "True" -copyright-author = "Canonical Ltd." -copyright-regexp = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+%(author)s" diff --git a/installers/charm/osm-nbi/tox.ini b/installers/charm/osm-nbi/tox.ini index b791e14b..bae1f1f7 100644 --- a/installers/charm/osm-nbi/tox.ini +++ b/installers/charm/osm-nbi/tox.ini @@ -54,7 +54,6 @@ deps = black flake8 flake8-docstrings - flake8-copyright flake8-builtins pyproject-flake8 pep8-naming diff --git a/installers/charm/osm-ng-ui/pyproject.toml b/installers/charm/osm-ng-ui/pyproject.toml index d0d4a5bc..16cf0f4b 100644 --- a/installers/charm/osm-ng-ui/pyproject.toml +++ b/installers/charm/osm-ng-ui/pyproject.toml @@ -50,7 +50,3 @@ ignore = ["W503", "E501", "D107"] # D100, D101, D102, D103: Ignore missing docstrings in tests per-file-ignores = ["tests/*:D100,D101,D102,D103,D104"] docstring-convention = "google" -# Check for properly formatted copyright header in each file -copyright-check = "True" -copyright-author = "Canonical Ltd." -copyright-regexp = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+%(author)s" diff --git a/installers/charm/osm-ng-ui/tox.ini b/installers/charm/osm-ng-ui/tox.ini index 13c97358..5fd78491 100644 --- a/installers/charm/osm-ng-ui/tox.ini +++ b/installers/charm/osm-ng-ui/tox.ini @@ -54,7 +54,6 @@ deps = black flake8 flake8-docstrings - flake8-copyright flake8-builtins pyproject-flake8 pep8-naming diff --git a/installers/charm/osm-pol/pyproject.toml b/installers/charm/osm-pol/pyproject.toml index d0d4a5bc..16cf0f4b 100644 --- a/installers/charm/osm-pol/pyproject.toml +++ b/installers/charm/osm-pol/pyproject.toml @@ -50,7 +50,3 @@ ignore = ["W503", "E501", "D107"] # D100, D101, D102, D103: Ignore missing docstrings in tests per-file-ignores = ["tests/*:D100,D101,D102,D103,D104"] docstring-convention = "google" -# Check for properly formatted copyright header in each file -copyright-check = "True" -copyright-author = "Canonical Ltd." -copyright-regexp = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+%(author)s" diff --git a/installers/charm/osm-pol/tox.ini b/installers/charm/osm-pol/tox.ini index 275137c3..0268da8a 100644 --- a/installers/charm/osm-pol/tox.ini +++ b/installers/charm/osm-pol/tox.ini @@ -53,7 +53,6 @@ deps = black flake8 flake8-docstrings - flake8-copyright flake8-builtins pyproject-flake8 pep8-naming diff --git a/installers/charm/osm-ro/pyproject.toml b/installers/charm/osm-ro/pyproject.toml index d0d4a5bc..16cf0f4b 100644 --- a/installers/charm/osm-ro/pyproject.toml +++ b/installers/charm/osm-ro/pyproject.toml @@ -50,7 +50,3 @@ ignore = ["W503", "E501", "D107"] # D100, D101, D102, D103: Ignore missing docstrings in tests per-file-ignores = ["tests/*:D100,D101,D102,D103,D104"] docstring-convention = "google" -# Check for properly formatted copyright header in each file -copyright-check = "True" -copyright-author = "Canonical Ltd." -copyright-regexp = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+%(author)s" diff --git a/installers/charm/osm-ro/tox.ini b/installers/charm/osm-ro/tox.ini index 0083afe3..70089f8d 100644 --- a/installers/charm/osm-ro/tox.ini +++ b/installers/charm/osm-ro/tox.ini @@ -54,7 +54,6 @@ deps = black flake8==4.0.1 flake8-docstrings - flake8-copyright flake8-builtins pyproject-flake8 pep8-naming diff --git a/installers/charm/vca-integrator-operator/pyproject.toml b/installers/charm/vca-integrator-operator/pyproject.toml index 2e1a6dd2..7f5495be 100644 --- a/installers/charm/vca-integrator-operator/pyproject.toml +++ b/installers/charm/vca-integrator-operator/pyproject.toml @@ -47,10 +47,6 @@ ignore = ["W503", "E402", "E501", "D107"] # D100, D101, D102, D103: Ignore missing docstrings in tests per-file-ignores = ["tests/*:D100,D101,D102,D103,D104"] docstring-convention = "google" -# Check for properly formatted copyright header in each file -copyright-check = "True" -copyright-author = "Canonical Ltd." -copyright-regexp = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+%(author)s" [tool.bandit] tests = ["B201", "B301"] diff --git a/installers/charm/vca-integrator-operator/tox.ini b/installers/charm/vca-integrator-operator/tox.ini index 1893353c..6ef1fe35 100644 --- a/installers/charm/vca-integrator-operator/tox.ini +++ b/installers/charm/vca-integrator-operator/tox.ini @@ -51,7 +51,6 @@ deps = black flake8 flake8-docstrings - flake8-copyright flake8-builtins pylint pyproject-flake8