From 4cf2afd564144b5500a0d10c4ae30bc82be8ea6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radoslav=20Bod=C3=B3?= <bodik@cesnet.cz> Date: Mon, 15 Apr 2024 13:52:14 +0200 Subject: [PATCH] general: yamllint to dev env --- Makefile | 6 +++--- examples/rwm-admin.conf | 2 +- examples/rwm-backups.conf | 2 +- examples/rwm-linux.conf | 6 +++--- examples/rwm-restic.conf | 2 +- rwm.py | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 0e73ea8..f11ad5d 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ all: coverage lint install: - apt-get -y install awscli python3-boto3 python3-pydantic python3-tabulate restic yamllint + apt-get -y install awscli python3-boto3 python3-pydantic python3-tabulate restic install-dev: - apt-get -y install python3-venv snapd + apt-get -y install python3-venv snapd yamllint python3 -m venv venv venv/bin/pip install -U pip venv/bin/pip install -r requirements.lock @@ -19,7 +19,7 @@ lint-py: python3 -m pylint rwm.py tests scripts lint-yaml: - yamllint --strict . + yamllint --strict . examples/*.conf test: # show stderr with "-o log_cli=true" diff --git a/examples/rwm-admin.conf b/examples/rwm-admin.conf index 9d53872..a1681d0 100644 --- a/examples/rwm-admin.conf +++ b/examples/rwm-admin.conf @@ -1,5 +1,5 @@ # rwm aws, storage - +--- s3_endpoint_url: "" s3_access_key: "" s3_secret_key: "" diff --git a/examples/rwm-backups.conf b/examples/rwm-backups.conf index ffd2716..6f8d7ae 100644 --- a/examples/rwm-backups.conf +++ b/examples/rwm-backups.conf @@ -1,5 +1,5 @@ # rwm aws, restic, backup, backup_all - +--- s3_endpoint_url: "" s3_access_key: "" s3_secret_key: "" diff --git a/examples/rwm-linux.conf b/examples/rwm-linux.conf index 35d4874..1d54c92 100644 --- a/examples/rwm-linux.conf +++ b/examples/rwm-linux.conf @@ -1,5 +1,5 @@ # rwm aws, restic, backup, backup_all - +--- s3_endpoint_url: "" s3_access_key: "" s3_secret_key: "" @@ -12,8 +12,8 @@ backups: filesdirs: - "/" excludes: - #- "*.cache" - #- "*.log" + # - "*.cache" + # - "*.log" - "/dev/*" - "/home/*/.cache/*" - "/media/*" diff --git a/examples/rwm-restic.conf b/examples/rwm-restic.conf index fab2851..00156e2 100644 --- a/examples/rwm-restic.conf +++ b/examples/rwm-restic.conf @@ -1,5 +1,5 @@ # rwm aws, restic - +--- s3_endpoint_url: "" s3_access_key: "" s3_secret_key: "" diff --git a/rwm.py b/rwm.py index bba8b8a..4012451 100755 --- a/rwm.py +++ b/rwm.py @@ -120,7 +120,7 @@ class RWMConfig(BaseModel): Dictionary containing named backup configurations. retention: - Dictionary containing retention policies for Restic repository. + Dictionary containing retention policies for Restic repository. Keys and values corresponds to a `restic forget` command `--keep*` options without leading dashes. """ -- GitLab