Skip to content

Commit

Permalink
Apply pre-commit fix
Browse files Browse the repository at this point in the history
From the artifact of the previous workflow run
  • Loading branch information
geo-ghci-int[bot] committed Nov 15, 2024
1 parent fba2666 commit 9a94ab0
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 61 deletions.
49 changes: 26 additions & 23 deletions github_app_geo_project/module/audit/configuration.py
Original file line number Diff line number Diff line change
@@ -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(
Expand All @@ -16,7 +19,7 @@
# |
# | default:
# | {}
"version-mapping": dict[str, str],
"version-mapping": Dict[str, str],
},
total=False,
)
Expand Down Expand Up @@ -114,7 +117,7 @@ class DpkgConfiguration(TypedDict, total=False):
default: True
"""

sources: dict[str, list["_DpkgSourcesAdditionalpropertiesItem"]]
sources: Dict[str, List["_DpkgSourcesAdditionalpropertiesItem"]]
"""
Dpkg sources.
Expand Down Expand Up @@ -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' """


Expand Down Expand Up @@ -260,57 +263,57 @@ 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
# |
# | 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",
},
Expand All @@ -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' """


Expand All @@ -366,7 +369,7 @@ class _DpkgSourcesAdditionalpropertiesItem(TypedDict, total=False):
Distribution of the source
"""

components: list[str]
components: List[str]
"""
Components.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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' """
Expand Down Expand Up @@ -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
Expand All @@ -40,15 +43,15 @@
# | - --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
# |
# | default:
# | - (.*/)?poetry\.lock
# | - (.*/)?package-lock\.json
"ignore-re": list[str],
"ignore-re": List[str],
},
total=False,
)
Expand Down
19 changes: 11 additions & 8 deletions github_app_geo_project/module/pull_request/links_configuration.py
Original file line number Diff line number Diff line change
@@ -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<project>[A-Z]{3,6})-(?P<issue>[0-9]+)-.*$",
Expand All @@ -24,23 +27,23 @@
# | - ^(?P<project>[a-z]{3,6})-(?P<issue>[0-9]+)-.*$
# | - ^.*-(?P<project>[A-Z]{3,6})-(?P<issue>[0-9]+)$
# | - ^.*-(?P<project>[a-z]{3,6})-(?P<issue>[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,
)
Expand All @@ -55,4 +58,4 @@ class _ContentItem(TypedDict, total=False):
""" default: """

url: str
requires: list[str]
requires: List[str]
8 changes: 5 additions & 3 deletions github_app_geo_project/module/standard/auto_configuration.py
Original file line number Diff line number Diff line change
@@ -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):
Expand All @@ -10,7 +12,7 @@ class AutoPullRequest(TypedDict, total=False):
auto pull request configuration
"""

conditions: list["_ConditionsItem"]
conditions: List["_ConditionsItem"]
""" Conditions. """


Expand Down
17 changes: 10 additions & 7 deletions github_app_geo_project/module/standard/changelog_configuration.py
Original file line number Diff line number Diff line change
@@ -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' """
Expand Down Expand Up @@ -31,19 +34,19 @@
# | 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
"default-section": str,
# | Routing.
# |
# | The routing configuration
"routing": list["ChangelogRoutingConfiguration"],
"routing": List["ChangelogRoutingConfiguration"],
},
total=False,
)
Expand Down Expand Up @@ -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 """


Expand Down Expand Up @@ -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 """


Expand Down
Loading

0 comments on commit 9a94ab0

Please sign in to comment.