diff --git a/src/meta/runtime.yml b/src/meta/runtime.yml index a3251e5..c467dd7 100644 --- a/src/meta/runtime.yml +++ b/src/meta/runtime.yml @@ -1,3 +1,2 @@ -%YAML 1.2 --- requires_ansible: ">=2.12.0" diff --git a/src/plugins/modules/zone.py b/src/plugins/modules/zone.py index aba7684..a662970 100644 --- a/src/plugins/modules/zone.py +++ b/src/plugins/modules/zone.py @@ -771,7 +771,7 @@ def default(self): def user_meta_from_api(self, user_meta, api_meta_item): user_meta[self.meta] = api_meta_item[0] == "1" - def set(self, value, api_client): # noqa: A003 + def set(self, value, api_client): if value: api_client.zonemetadata.modifyMetadata( metadata_kind=self.api_kind, @@ -799,7 +799,7 @@ def default(self): def user_meta_from_api(self, user_meta, api_meta_item): user_meta[self.meta] = True - def set(self, value, api_client): # noqa: A003 + def set(self, value, api_client): if value: api_client.zonemetadata.modifyMetadata( metadata_kind=self.api_kind, @@ -827,7 +827,7 @@ def default(self): def user_meta_from_api(self, user_meta, api_meta_item): user_meta[self.meta] = api_meta_item[0] == "1" - def set(self, value, api_client): # noqa: A003 + def set(self, value, api_client): if value is not None: if value: api_client.zonemetadata.modifyMetadata( @@ -867,7 +867,7 @@ def default(self): def user_meta_from_api(self, user_meta, api_meta_item): user_meta[self.meta] = api_meta_item - def set(self, value, api_client): # noqa: A003 + def set(self, value, api_client): if len(value) != 0: api_client.zonemetadata.modifyMetadata( metadata_kind=self.api_kind, @@ -895,7 +895,7 @@ def default(self): def user_meta_from_api(self, user_meta, api_meta_item): user_meta[self.meta] = api_meta_item[0] - def set(self, value, api_client): # noqa: A003 + def set(self, value, api_client): if value: api_client.zonemetadata.modifyMetadata( metadata_kind=self.api_kind, @@ -991,7 +991,7 @@ def default(self): def user_meta_from_api(self, user_meta, zone_meta_item): user_meta[self.meta] = zone_meta_item == "1" - def set(self, value, zone_struct): # noqa: A003 + def set(self, value, zone_struct): if value: zone_struct[self.zone_kind] = "1" @@ -1010,7 +1010,7 @@ def default(self): def user_meta_from_api(self, user_meta, zone_meta_item): user_meta[self.meta] = zone_meta_item == "1" - def set(self, value, zone_struct): # noqa: A003 + def set(self, value, zone_struct): if value is not None: if value: zone_struct[self.zone_kind] = "1" @@ -1035,7 +1035,7 @@ def default(self): def user_meta_from_api(self, user_meta, zone_meta_item): user_meta[self.meta] = zone_meta_item - def set(self, value, zone_struct): # noqa: A003 + def set(self, value, zone_struct): if value != []: zone_struct[self.zone_kind] = value @@ -1051,7 +1051,7 @@ def default(self): def user_meta_from_api(self, user_meta, zone_meta_item): user_meta[self.meta] = zone_meta_item - def set(self, value, zone_struct): # noqa: A003 + def set(self, value, zone_struct): if value != "": zone_struct[self.zone_kind] = value diff --git a/tox.ini b/tox.ini index a01011d..b9f1c25 100644 --- a/tox.ini +++ b/tox.ini @@ -62,7 +62,7 @@ commands_pre= commands= black --preview src ruff check --fix src - ansible-lint --write all --strict --profile production -v + ansible-lint --fix all --strict --profile production -v [testenv:py{38,39,310,311,312}-ci-action] deps= diff --git a/workflow-support/test-tsigkey.yml b/workflow-support/test-tsigkey.yml index 5d0f521..8eaa941 100644 --- a/workflow-support/test-tsigkey.yml +++ b/workflow-support/test-tsigkey.yml @@ -1,4 +1,3 @@ -%YAML 1.2 --- - hosts: localhost connection: local diff --git a/workflow-support/test-zone-issue-136.yml b/workflow-support/test-zone-issue-136.yml index 0c574c4..27a3d05 100644 --- a/workflow-support/test-zone-issue-136.yml +++ b/workflow-support/test-zone-issue-136.yml @@ -1,4 +1,3 @@ -%YAML 1.2 --- - hosts: localhost connection: local diff --git a/workflow-support/test-zone-rrset.yml b/workflow-support/test-zone-rrset.yml index 72b5475..ed8dea4 100644 --- a/workflow-support/test-zone-rrset.yml +++ b/workflow-support/test-zone-rrset.yml @@ -1,4 +1,3 @@ -%YAML 1.2 --- - hosts: localhost connection: local diff --git a/workflow-support/test-zone.yml b/workflow-support/test-zone.yml index 1d4124f..7402b10 100644 --- a/workflow-support/test-zone.yml +++ b/workflow-support/test-zone.yml @@ -1,4 +1,3 @@ -%YAML 1.2 --- - hosts: localhost connection: local