From 5f0df5c90ee748050943bca85aba4e89a9eed2b9 Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen Date: Thu, 8 Aug 2024 09:24:14 +0300 Subject: [PATCH] lint: Add the python client to linted files Signed-off-by: Jussi Kukkonen --- Makefile | 11 ++++++----- clients/python-tuf/python_tuf.py | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 9b449a6..8e1c5d1 100644 --- a/Makefile +++ b/Makefile @@ -32,14 +32,15 @@ dev: env/pyvenv.cfg .PHONY: test-all test-all: test-python-tuf test-go-tuf +lint_dirs = tuf_conformance clients/python-tuf lint: dev - ./env/bin/ruff format --diff tuf_conformance - ./env/bin/ruff check tuf_conformance - ./env/bin/mypy tuf_conformance + ./env/bin/ruff format --diff $(lint_dirs) + ./env/bin/ruff check $(lint_dirs) + ./env/bin/mypy $(lint_dirs) fix: dev - ./env/bin/ruff format tuf_conformance - ./env/bin/ruff check --fix tuf_conformance + ./env/bin/ruff format $(lint_dirs) + ./env/bin/ruff check --fix $(lint_dirs) ######################### # python-tuf section diff --git a/clients/python-tuf/python_tuf.py b/clients/python-tuf/python_tuf.py index 0fd9ace..bc9054f 100755 --- a/clients/python-tuf/python_tuf.py +++ b/clients/python-tuf/python_tuf.py @@ -9,7 +9,7 @@ import shutil import sys -from tuf.ngclient import Updater, UpdaterConfig +from tuf.ngclient import Updater def init(metadata_dir: str, trusted_root: str) -> None: