From 1a29c6d665a65db3b1b4b8c4e73731a05336cbac Mon Sep 17 00:00:00 2001 From: "geo-ghci-int[bot]" <146321879+geo-ghci-int[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 09:56:06 +0000 Subject: [PATCH] Apply pre-commit fix From the artifact of the previous workflow run --- .../module/audit/configuration.py | 49 ++++++++++--------- .../delete_old_workflow_runs/configuration.py | 9 ++-- .../pull_request/checks_configuration.py | 13 +++-- .../pull_request/links_configuration.py | 19 ++++--- .../module/standard/auto_configuration.py | 8 +-- .../standard/changelog_configuration.py | 17 ++++--- .../module/versions/configuration.py | 24 ++++----- 7 files changed, 78 insertions(+), 61 deletions(-) diff --git a/github_app_geo_project/module/audit/configuration.py b/github_app_geo_project/module/audit/configuration.py index 0b089eef19..44738fccc5 100644 --- a/github_app_geo_project/module/audit/configuration.py +++ b/github_app_geo_project/module/audit/configuration.py @@ -1,6 +1,9 @@ -"""Automatically generated file from a JSON schema.""" +""" +Automatically generated file from a JSON schema. +""" + +from typing import Any, Dict, List, Literal, TypedDict, Union -from typing import Any, Literal, TypedDict, Union # | Audit configuration. AuditConfiguration = TypedDict( @@ -16,7 +19,7 @@ # | # | default: # | {} - "version-mapping": dict[str, str], + "version-mapping": Dict[str, str], }, total=False, ) @@ -114,7 +117,7 @@ class DpkgConfiguration(TypedDict, total=False): default: True """ - sources: dict[str, list["_DpkgSourcesAdditionalpropertiesItem"]] + sources: Dict[str, List["_DpkgSourcesAdditionalpropertiesItem"]] """ Dpkg sources. @@ -212,23 +215,23 @@ class DpkgConfiguration(TypedDict, total=False): """ Default value of the field path 'Snyk configuration enabled' """ -FILES_NOT_TO_INSTALL_DEFAULT: list[Any] = [] +FILES_NOT_TO_INSTALL_DEFAULT: List[Any] = [] """ Default value of the field path 'Snyk configuration files-no-install' """ -JAVA_PATH_BY_GRADLE_VERSION_DEFAULT: dict[str, Any] = {} +JAVA_PATH_BY_GRADLE_VERSION_DEFAULT: Dict[str, Any] = {} """ Default value of the field path 'Snyk configuration java-path-for-gradle' """ -PIPENV_SYNC_ARGUMENTS_DEFAULT: list[Any] = [] +PIPENV_SYNC_ARGUMENTS_DEFAULT: List[Any] = [] """ Default value of the field path 'Snyk configuration pipenv-sync-arguments' """ -PIP_INSTALL_ARGUMENTS_DEFAULT: list[Any] = [] +PIP_INSTALL_ARGUMENTS_DEFAULT: List[Any] = [] """ Default value of the field path 'Snyk configuration pip-install-arguments' """ -POETRY_INSTALL_ARGUMENTS_DEFAULT: list[Any] = [] +POETRY_INSTALL_ARGUMENTS_DEFAULT: List[Any] = [] """ Default value of the field path 'Snyk configuration poetry-install-arguments' """ @@ -260,42 +263,42 @@ class DpkgConfiguration(TypedDict, total=False): # | # | default: # | [] - "files-no-install": list[str], + "files-no-install": List[str], # | Pip install arguments. # | # | Arguments to pass to pip install # | # | default: # | [] - "pip-install-arguments": list[str], + "pip-install-arguments": List[str], # | Pipenv sync arguments. # | # | Arguments to pass to pipenv sync # | # | default: # | [] - "pipenv-sync-arguments": list[str], + "pipenv-sync-arguments": List[str], # | Poetry install arguments. # | # | Arguments to pass to pip install # | # | default: # | [] - "poetry-install-arguments": list[str], + "poetry-install-arguments": List[str], # | Java path by Gradle version. # | # | Path to the directory that contains Java executable to use for the Gradle minor version # | # | default: # | {} - "java-path-for-gradle": dict[str, str], + "java-path-for-gradle": Dict[str, str], # | Snyk monitor arguments. # | # | Arguments to pass to Snyk monitor # | # | default: # | - --all-projects - "monitor-arguments": list[str], + "monitor-arguments": List[str], # | Snyk test arguments. # | # | Arguments to pass to Snyk test @@ -303,14 +306,14 @@ class DpkgConfiguration(TypedDict, total=False): # | default: # | - --all-projects # | - --severity-threshold=medium - "test-arguments": list[str], + "test-arguments": List[str], # | Snyk fix arguments. # | # | Arguments to pass to Snyk fix # | # | default: # | - --all-projects - "fix-arguments": list[str], + "fix-arguments": List[str], # | Snyk monitor configuration. "monitor": "SnykMonitorConfiguration", }, @@ -326,28 +329,28 @@ class DpkgConfiguration(TypedDict, total=False): # | # | Set the project environment project attribute. To clear the project environment set empty array. # | For more information see Project attributes https://docs.snyk.io/getting-started/introduction-to-snyk-projects/view-project-information/project-attributes - "project-environment": list["_SnykMonitorEnvironmentItem"], + "project-environment": List["_SnykMonitorEnvironmentItem"], # | Snyk monitor lifecycle. # | # | Set the project lifecycle project attribute. To clear the project lifecycle set empty array. # | For more information see Project attributes https://docs.snyk.io/snyk-admin/snyk-projects/project-tags - "project-lifecycle": list["_SnykMonitorLifecycleItem"], + "project-lifecycle": List["_SnykMonitorLifecycleItem"], # | Snyk monitor business criticality. # | # | Set the project business criticality project attribute. To clear the project business criticality set empty array. # | For more information see Project attributes https://docs.snyk.io/snyk-admin/snyk-projects/project-tags - "project-business-criticality": list["_SnykMonitorBusinessCriticalityItem"], + "project-business-criticality": List["_SnykMonitorBusinessCriticalityItem"], # | Snyk monitor tags. # | # | Set the project tags to one or more values. # | To clear the project tags set empty dictionary. - "project-tags": dict[str, str], + "project-tags": Dict[str, str], }, total=False, ) -VERSION_MAPPING_DEFAULT: dict[str, Any] = {} +VERSION_MAPPING_DEFAULT: Dict[str, Any] = {} """ Default value of the field path 'Audit configuration version-mapping' """ @@ -366,7 +369,7 @@ class _DpkgSourcesAdditionalpropertiesItem(TypedDict, total=False): Distribution of the source """ - components: list[str] + components: List[str] """ Components. diff --git a/github_app_geo_project/module/delete_old_workflow_runs/configuration.py b/github_app_geo_project/module/delete_old_workflow_runs/configuration.py index 39262243f7..6c9890ac11 100644 --- a/github_app_geo_project/module/delete_old_workflow_runs/configuration.py +++ b/github_app_geo_project/module/delete_old_workflow_runs/configuration.py @@ -1,14 +1,15 @@ -"""Automatically generated file from a JSON schema.""" - -from typing import TypedDict +""" +Automatically generated file from a JSON schema. +""" +from typing import List, TypedDict from typing_extensions import Required class DeleteOldWorkflowRunsConfiguration(TypedDict, total=False): """Delete old workflow runs configuration.""" - rules: list["Rule"] + rules: List["Rule"] # | Rule. diff --git a/github_app_geo_project/module/pull_request/checks_configuration.py b/github_app_geo_project/module/pull_request/checks_configuration.py index e454f737e1..1acdc3baad 100644 --- a/github_app_geo_project/module/pull_request/checks_configuration.py +++ b/github_app_geo_project/module/pull_request/checks_configuration.py @@ -1,6 +1,9 @@ -"""Automatically generated file from a JSON schema.""" +""" +Automatically generated file from a JSON schema. +""" + +from typing import List, TypedDict, Union -from typing import TypedDict, Union CODESPELL_ARGUMENTS_DEFAULT = ["--quiet-level=2", "--check-filenames", "--ignore-words-list=ro"] """ Default value of the field path 'Codespell arguments' """ @@ -31,7 +34,7 @@ # | - code # | - names # | - en-GB_to_en-US - "internal-dictionaries": list[str], + "internal-dictionaries": List[str], # | codespell arguments. # | # | List of argument that will be added to the codespell command @@ -40,7 +43,7 @@ # | - --quiet-level=2 # | - --check-filenames # | - --ignore-words-list=ro - "arguments": list[str], + "arguments": List[str], # | codespell ignore regular expression. # | # | List of regular expression that should be ignored @@ -48,7 +51,7 @@ # | default: # | - (.*/)?poetry\.lock # | - (.*/)?package-lock\.json - "ignore-re": list[str], + "ignore-re": List[str], }, total=False, ) diff --git a/github_app_geo_project/module/pull_request/links_configuration.py b/github_app_geo_project/module/pull_request/links_configuration.py index d7b97a9594..822e1a2679 100644 --- a/github_app_geo_project/module/pull_request/links_configuration.py +++ b/github_app_geo_project/module/pull_request/links_configuration.py @@ -1,6 +1,9 @@ -"""Automatically generated file from a JSON schema.""" +""" +Automatically generated file from a JSON schema. +""" + +from typing import Dict, List, TypedDict -from typing import TypedDict BRANCH_PATTERNS_DEFAULT = [ "^(?P[A-Z]{3,6})-(?P[0-9]+)-.*$", @@ -24,23 +27,23 @@ # | - ^(?P[a-z]{3,6})-(?P[0-9]+)-.*$ # | - ^.*-(?P[A-Z]{3,6})-(?P[0-9]+)$ # | - ^.*-(?P[a-z]{3,6})-(?P[0-9]+)$ - "branch-patterns": list[str], + "branch-patterns": List[str], # | Blacklist. # | # | List of regular expressions used to exclude some parameters values - "blacklist": dict[str, list[str]], + "blacklist": Dict[str, List[str]], # | Uppercase. # | # | List of parameters to convert to uppercase - "uppercase": list[str], + "uppercase": List[str], # | Lowercase. # | # | List of parameters to convert to lowercase - "lowercase": list[str], + "lowercase": List[str], # | Content. # | # | List of elements to add to the pull request - "content": list["_ContentItem"], + "content": List["_ContentItem"], }, total=False, ) @@ -55,4 +58,4 @@ class _ContentItem(TypedDict, total=False): """ default: """ url: str - requires: list[str] + requires: List[str] diff --git a/github_app_geo_project/module/standard/auto_configuration.py b/github_app_geo_project/module/standard/auto_configuration.py index 21ef8ccf12..59f2cefd33 100644 --- a/github_app_geo_project/module/standard/auto_configuration.py +++ b/github_app_geo_project/module/standard/auto_configuration.py @@ -1,6 +1,8 @@ -"""Automatically generated file from a JSON schema.""" +""" +Automatically generated file from a JSON schema. +""" -from typing import TypedDict +from typing import List, TypedDict class AutoPullRequest(TypedDict, total=False): @@ -10,7 +12,7 @@ class AutoPullRequest(TypedDict, total=False): auto pull request configuration """ - conditions: list["_ConditionsItem"] + conditions: List["_ConditionsItem"] """ Conditions. """ diff --git a/github_app_geo_project/module/standard/changelog_configuration.py b/github_app_geo_project/module/standard/changelog_configuration.py index cba3b1f340..db980b224d 100644 --- a/github_app_geo_project/module/standard/changelog_configuration.py +++ b/github_app_geo_project/module/standard/changelog_configuration.py @@ -1,6 +1,9 @@ -"""Automatically generated file from a JSON schema.""" +""" +Automatically generated file from a JSON schema. +""" + +from typing import Dict, List, Literal, TypedDict, Union -from typing import Literal, TypedDict, Union CREATE_LABELS_DEFAULT = False """ Default value of the field path 'Changelog create-labels' """ @@ -31,11 +34,11 @@ # | Changelog labels configuration. # | # | The labels configuration - "labels": dict[str, "ChangelogLabelConfiguration"], + "labels": Dict[str, "ChangelogLabelConfiguration"], # | Changelog sections configuration. # | # | The sections configuration - "sections": list["Section"], + "sections": List["Section"], # | Changelog default section. # | # | The default section for items @@ -43,7 +46,7 @@ # | Routing. # | # | The routing configuration - "routing": list["ChangelogRoutingConfiguration"], + "routing": List["ChangelogRoutingConfiguration"], }, total=False, ) @@ -121,7 +124,7 @@ class ConditionAndSolidusOr(TypedDict, total=False): type: "_ConditionAndSolidusOrType" """ The type of the condition """ - conditions: list["ConditionAndSolidusOr"] + conditions: List["ConditionAndSolidusOr"] """ The value of the conditions """ @@ -161,7 +164,7 @@ class ConditionFiles(TypedDict, total=False): type: Literal["files"] """ The type of the condition """ - regex: list["_ConditionFilesRegexItem"] + regex: List["_ConditionFilesRegexItem"] """ The list of regex that all the files should match """ diff --git a/github_app_geo_project/module/versions/configuration.py b/github_app_geo_project/module/versions/configuration.py index 293f59b631..0a4cf52c6d 100644 --- a/github_app_geo_project/module/versions/configuration.py +++ b/github_app_geo_project/module/versions/configuration.py @@ -1,10 +1,12 @@ -"""Automatically generated file from a JSON schema.""" - -from typing import Any, TypedDict +""" +Automatically generated file from a JSON schema. +""" +from typing import Any, Dict, List, TypedDict from typing_extensions import Required -VERSION_MAPPING_DEFAULT: dict[str, Any] = {} + +VERSION_MAPPING_DEFAULT: Dict[str, Any] = {} """ Default value of the field path 'Versions configuration version-mapping' """ @@ -13,7 +15,7 @@ "VersionsConfiguration", { # | The additional packages to be added to the versions - "additional-packages": dict[str, Any], + "additional-packages": Dict[str, Any], # | examples: # | - datasource: pypi # | package: python @@ -35,16 +37,16 @@ # | package: tomcat # | - datasource: package # | package: postgres - "external-packages": list["_VersionsConfigurationExternalPackagesItem"], + "external-packages": List["_VersionsConfigurationExternalPackagesItem"], # | The package extractor by datasource - "package-extractor": dict[str, "_VersionsConfigurationPackageExtractorAdditionalproperties"], + "package-extractor": Dict[str, "_VersionsConfigurationPackageExtractorAdditionalproperties"], # | Version mapping. # | # | Mapping of version to the branch name # | # | default: # | {} - "version-mapping": dict[str, str], + "version-mapping": Dict[str, str], }, total=False, ) @@ -66,8 +68,8 @@ class _VersionsConfigurationExternalPackagesItem(TypedDict, total=False): """ -_VersionsConfigurationPackageExtractorAdditionalproperties = dict[ - str, list["_VersionsConfigurationPackageExtractorAdditionalpropertiesAdditionalpropertiesItem"] +_VersionsConfigurationPackageExtractorAdditionalproperties = Dict[ + str, List["_VersionsConfigurationPackageExtractorAdditionalpropertiesAdditionalpropertiesItem"] ] """ The package extractor by package name """ @@ -80,7 +82,7 @@ class _VersionsConfigurationExternalPackagesItem(TypedDict, total=False): # | The type of datasource "datasource": str, # | The list of the required values to do the correspondence - "requires": list[str], + "requires": List[str], # | The name of the package that can be build from the extracted values # | # | Required property