Skip to content

Commit

Permalink
Merge pull request #118 from jku/lint-python-client-too
Browse files Browse the repository at this point in the history
lint: Add the python client to linted files
  • Loading branch information
jku authored Aug 8, 2024
2 parents 0e4c6a9 + 5f0df5c commit a14e257
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion clients/python-tuf/python_tuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a14e257

Please sign in to comment.