Upgrade linters, use ruff-format

This commit is contained in:
Stéphane Bidoul 2023-11-19 13:17:12 +01:00
parent 6940ec9700
commit 6f7469be2a
2 changed files with 6 additions and 9 deletions

View file

@ -1,18 +1,15 @@
default_language_version: default_language_version:
python: python3 python: python3
repos: repos:
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 rev: v4.5.0
hooks: hooks:
- id: check-toml - id: check-toml
- id: check-yaml - id: check-yaml
- id: end-of-file-fixer - id: end-of-file-fixer
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit - repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.252 rev: v0.1.6
hooks: hooks:
- id: ruff - id: ruff
- id: ruff-format

View file

@ -59,13 +59,13 @@ class Settings(BaseSettings):
# The wildcard domain where the builds will be reacheable. # The wildcard domain where the builds will be reacheable.
build_domain: str build_domain: str
# A dictionary of environment variables to set in the build container and jobs. # A dictionary of environment variables to set in the build container and jobs.
build_env: dict[str, str] = {} build_env: dict[str, str] = {} # noqa: RUF012
# A dictionary of secret environment variables to set in the build container and # A dictionary of secret environment variables to set in the build container and
# jobs. # jobs.
build_secret_env: dict[str, str] = {} build_secret_env: dict[str, str] = {} # noqa: RUF012
# A dictionary of variables to be set in the jinja rendering context for the # A dictionary of variables to be set in the jinja rendering context for the
# kubefiles. # kubefiles.
build_template_vars: dict[str, str] = {} build_template_vars: dict[str, str] = {} # noqa: RUF012
# The path of the default kubefiles to be used. # The path of the default kubefiles to be used.
build_default_kubefiles_path: Annotated[ build_default_kubefiles_path: Annotated[
Path | None, BeforeValidator(validate_path) Path | None, BeforeValidator(validate_path)