Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI/build dependencies (minor) - abandoned #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
- id: trailing-whitespace
- id: mixed-line-ending
- repo: https://github.com/camptocamp/jsonschema-gentypes
rev: 2.8.1
rev: 2.9.3
hooks:
- id: jsonschema-gentypes
files: |-
Expand Down Expand Up @@ -81,7 +81,7 @@ repos:
- --builtin-schema
- github-workflows-require-timeout
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 39.42.4
rev: 39.86.3
hooks:
- id: renovate-config-validator
- repo: https://github.com/sirwart/ripsecrets
Expand All @@ -105,8 +105,8 @@ repos:
- --die-on-tool-error
- --output-format=pylint
additional_dependencies:
- prospector-profile-duplicated==1.8.0 # pypi
- prospector-profile-utils==1.12.2 # pypi
- prospector-profile-duplicated==1.10.0 # pypi
- prospector-profile-utils==1.14.1 # pypi
- repo: https://github.com/mheap/json-schema-spell-checker
rev: main
hooks:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2020-2024, Camptocamp SA
Copyright (c) 2020-2025, Camptocamp SA
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
38 changes: 19 additions & 19 deletions tag_publish/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Automatically generated file from a JSON schema.
"""

from typing import Any, Dict, List, TypedDict
from typing import Any, TypedDict


class Configuration(TypedDict, total=False):
Expand Down Expand Up @@ -51,7 +51,7 @@ class Configuration(TypedDict, total=False):
Configuration to publish Helm charts on GitHub release
"""

dispatch: List["DispatchConfig"]
dispatch: list["DispatchConfig"]
"""
Dispatch.

Expand All @@ -60,11 +60,11 @@ class Configuration(TypedDict, total=False):
"""


DISPATCH_CONFIG_DEFAULT: Dict[str, Any] = {}
DISPATCH_CONFIG_DEFAULT: dict[str, Any] = {}
""" Default value of the field path 'Dispatch item' """


DISPATCH_DEFAULT: List[Any] = []
DISPATCH_DEFAULT: list[Any] = []
""" Default value of the field path 'Tag publish configuration dispatch' """


Expand Down Expand Up @@ -157,10 +157,10 @@ class Docker(TypedDict, total=False):
default: True
"""

images: List["DockerImage"]
images: list["DockerImage"]
""" List of images to be published """

repository: Dict[str, "DockerRepository"]
repository: dict[str, "DockerRepository"]
"""
Docker repository.

Expand Down Expand Up @@ -201,7 +201,7 @@ class DockerImage(TypedDict, total=False):
name: str
""" The image name """

tags: List[str]
tags: list[str]
"""
docker image tags.

Expand All @@ -218,7 +218,7 @@ class DockerRepository(TypedDict, total=False):
host: str
""" The host of the repository URL """

versions_type: List[str]
versions_type: list[str]
"""
Docker repository versions.

Expand Down Expand Up @@ -253,10 +253,10 @@ class Helm(TypedDict, total=False):
Configuration to publish Helm charts on GitHub release
"""

packages: List["HelmPackage"]
packages: list["HelmPackage"]
""" The configuration of packages that will be published """

versions_type: List[str]
versions_type: list[str]
"""
helm versions.

Expand Down Expand Up @@ -320,10 +320,10 @@ class Node(TypedDict, total=False):
Configuration to publish on node
"""

packages: List["NodePackage"]
packages: list["NodePackage"]
""" The configuration of packages that will be published """

versions_type: List[str]
versions_type: list[str]
"""
node versions.

Expand All @@ -333,7 +333,7 @@ class Node(TypedDict, total=False):
- tag
"""

repository: Dict[str, "NodeRepository"]
repository: dict[str, "NodeRepository"]
"""
Node repository.

Expand All @@ -344,7 +344,7 @@ class Node(TypedDict, total=False):
host: npm.pkg.github.com
"""

args: List[str]
args: list[str]
"""
Node args.

Expand Down Expand Up @@ -408,10 +408,10 @@ class Pypi(TypedDict, total=False):
Configuration to publish on pypi
"""

packages: List["PypiPackage"]
packages: list["PypiPackage"]
""" The configuration of packages that will be published """

versions_type: List[str]
versions_type: list[str]
"""
pypi versions.

Expand Down Expand Up @@ -447,15 +447,15 @@ class PypiPackage(TypedDict, total=False):
default: .
"""

build_command: List[str]
build_command: list[str]
""" The command used to do the build """


TRANSFORMERS_DEFAULT = {"pull_request_to_version": [{"to": "pr-\\1"}]}
""" Default value of the field path 'Tag publish configuration transformers' """


TRANSFORM_DEFAULT: List[Any] = []
TRANSFORM_DEFAULT: list[Any] = []
""" Default value of the field path 'transform' """


Expand All @@ -467,7 +467,7 @@ class PypiPackage(TypedDict, total=False):
""" Default value of the field path 'Version transform to' """


Transform = List["VersionTransform"]
Transform = list["VersionTransform"]
"""
transform.

Expand Down