Skip to content

Commit

Permalink
Upgrade linters, use ruff-format
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Nov 19, 2023
1 parent 6940ec9 commit 6f7469b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 3 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
default_language_version:
python: python3
repos:
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.252
rev: v0.1.6
hooks:
- id: ruff
- id: ruff-format
6 changes: 3 additions & 3 deletions src/runboat/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ class Settings(BaseSettings):
# The wildcard domain where the builds will be reacheable.
build_domain: str
# 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
# 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
# kubefiles.
build_template_vars: dict[str, str] = {}
build_template_vars: dict[str, str] = {} # noqa: RUF012
# The path of the default kubefiles to be used.
build_default_kubefiles_path: Annotated[
Path | None, BeforeValidator(validate_path)
Expand Down

0 comments on commit 6f7469b

Please sign in to comment.