diff --git a/github_app_geo_project/module/audit/configuration.py b/github_app_geo_project/module/audit/configuration.py index 44738fccc5..0b089eef19 100644 --- a/github_app_geo_project/module/audit/configuration.py +++ b/github_app_geo_project/module/audit/configuration.py @@ -1,9 +1,6 @@ -""" -Automatically generated file from a JSON schema. -""" - -from typing import Any, Dict, List, Literal, TypedDict, Union +"""Automatically generated file from a JSON schema.""" +from typing import Any, Literal, TypedDict, Union # | Audit configuration. AuditConfiguration = TypedDict( @@ -19,7 +16,7 @@ # | # | default: # | {} - "version-mapping": Dict[str, str], + "version-mapping": dict[str, str], }, total=False, ) @@ -117,7 +114,7 @@ class DpkgConfiguration(TypedDict, total=False): default: True """ - sources: Dict[str, List["_DpkgSourcesAdditionalpropertiesItem"]] + sources: dict[str, list["_DpkgSourcesAdditionalpropertiesItem"]] """ Dpkg sources. @@ -215,23 +212,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' """ @@ -263,42 +260,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 @@ -306,14 +303,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", }, @@ -329,28 +326,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' """ @@ -369,7 +366,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 6c9890ac11..39262243f7 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,15 +1,14 @@ -""" -Automatically generated file from a JSON schema. -""" +"""Automatically generated file from a JSON schema.""" + +from typing import TypedDict -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 1acdc3baad..e454f737e1 100644 --- a/github_app_geo_project/module/pull_request/checks_configuration.py +++ b/github_app_geo_project/module/pull_request/checks_configuration.py @@ -1,9 +1,6 @@ -""" -Automatically generated file from a JSON schema. -""" - -from typing import List, TypedDict, Union +"""Automatically generated file from a JSON schema.""" +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' """ @@ -34,7 +31,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 @@ -43,7 +40,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 @@ -51,7 +48,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 822e1a2679..d7b97a9594 100644 --- a/github_app_geo_project/module/pull_request/links_configuration.py +++ b/github_app_geo_project/module/pull_request/links_configuration.py @@ -1,9 +1,6 @@ -""" -Automatically generated file from a JSON schema. -""" - -from typing import Dict, List, TypedDict +"""Automatically generated file from a JSON schema.""" +from typing import TypedDict BRANCH_PATTERNS_DEFAULT = [ "^(?P[A-Z]{3,6})-(?P[0-9]+)-.*$", @@ -27,23 +24,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, ) @@ -58,4 +55,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 59f2cefd33..21ef8ccf12 100644 --- a/github_app_geo_project/module/standard/auto_configuration.py +++ b/github_app_geo_project/module/standard/auto_configuration.py @@ -1,8 +1,6 @@ -""" -Automatically generated file from a JSON schema. -""" +"""Automatically generated file from a JSON schema.""" -from typing import List, TypedDict +from typing import TypedDict class AutoPullRequest(TypedDict, total=False): @@ -12,7 +10,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 db980b224d..cba3b1f340 100644 --- a/github_app_geo_project/module/standard/changelog_configuration.py +++ b/github_app_geo_project/module/standard/changelog_configuration.py @@ -1,9 +1,6 @@ -""" -Automatically generated file from a JSON schema. -""" - -from typing import Dict, List, Literal, TypedDict, Union +"""Automatically generated file from a JSON schema.""" +from typing import Literal, TypedDict, Union CREATE_LABELS_DEFAULT = False """ Default value of the field path 'Changelog create-labels' """ @@ -34,11 +31,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 @@ -46,7 +43,7 @@ # | Routing. # | # | The routing configuration - "routing": List["ChangelogRoutingConfiguration"], + "routing": list["ChangelogRoutingConfiguration"], }, total=False, ) @@ -124,7 +121,7 @@ class ConditionAndSolidusOr(TypedDict, total=False): type: "_ConditionAndSolidusOrType" """ The type of the condition """ - conditions: List["ConditionAndSolidusOr"] + conditions: list["ConditionAndSolidusOr"] """ The value of the conditions """ @@ -164,7 +161,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 0a4cf52c6d..293f59b631 100644 --- a/github_app_geo_project/module/versions/configuration.py +++ b/github_app_geo_project/module/versions/configuration.py @@ -1,12 +1,10 @@ -""" -Automatically generated file from a JSON schema. -""" +"""Automatically generated file from a JSON schema.""" -from typing import Any, Dict, List, TypedDict -from typing_extensions import Required +from typing import Any, 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' """ @@ -15,7 +13,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 @@ -37,16 +35,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, ) @@ -68,8 +66,8 @@ class _VersionsConfigurationExternalPackagesItem(TypedDict, total=False): """ -_VersionsConfigurationPackageExtractorAdditionalproperties = Dict[ - str, List["_VersionsConfigurationPackageExtractorAdditionalpropertiesAdditionalpropertiesItem"] +_VersionsConfigurationPackageExtractorAdditionalproperties = dict[ + str, list["_VersionsConfigurationPackageExtractorAdditionalpropertiesAdditionalpropertiesItem"] ] """ The package extractor by package name """ @@ -82,7 +80,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