Skip to content

Commit a14e257

Browse files
authored
Merge pull request #118 from jku/lint-python-client-too
lint: Add the python client to linted files
2 parents 0e4c6a9 + 5f0df5c commit a14e257

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ dev: env/pyvenv.cfg
3232
.PHONY: test-all
3333
test-all: test-python-tuf test-go-tuf
3434

35+
lint_dirs = tuf_conformance clients/python-tuf
3536
lint: dev
36-
./env/bin/ruff format --diff tuf_conformance
37-
./env/bin/ruff check tuf_conformance
38-
./env/bin/mypy tuf_conformance
37+
./env/bin/ruff format --diff $(lint_dirs)
38+
./env/bin/ruff check $(lint_dirs)
39+
./env/bin/mypy $(lint_dirs)
3940

4041
fix: dev
41-
./env/bin/ruff format tuf_conformance
42-
./env/bin/ruff check --fix tuf_conformance
42+
./env/bin/ruff format $(lint_dirs)
43+
./env/bin/ruff check --fix $(lint_dirs)
4344

4445
#########################
4546
# python-tuf section

clients/python-tuf/python_tuf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import shutil
1010
import sys
1111

12-
from tuf.ngclient import Updater, UpdaterConfig
12+
from tuf.ngclient import Updater
1313

1414

1515
def init(metadata_dir: str, trusted_root: str) -> None:

0 commit comments

Comments
 (0)