From: Dario Faccin Date: Fri, 31 Mar 2023 14:56:38 +0000 (+0200) Subject: Remove checks for copyright in charms X-Git-Tag: release-v14.0-start~98 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F30%2F13130%2F2;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 --- 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 8c1816ea..62ca08b1 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 65a62868..96679d4b 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 33004e2a..ff1d6571 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 5287f5c0..73cbb289 100644 --- a/installers/charm/osm-ng-ui/tox.ini +++ b/installers/charm/osm-ng-ui/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-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 8c1816ea..62ca08b1 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 e3fd0019..36f1061a 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 f9b5b224..ea2f1a11 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