Skip to content

Commit 4a53013

Browse files
committed
use correct ruff command and add ignore unused imports
Signed-off-by: E3E <ntanzill@purdue.edu>
1 parent e379507 commit 4a53013

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ line-length=80
8383
[tool.ruff.lint]
8484
ignore = ["D400","D415","D213","D205","D202","D107","D407","D413","D212","D104","D406","D105","D411","D401","D200","D203"]
8585

86+
[tool.ruff.lint.per-file-ignores]
87+
"tuf/repository/__init__.py" = ["F401"]
88+
"tuf/api/exceptions.py" = ["F401"]
89+
8690
# Pylint section
8791

8892
# Minimal pylint configuration file for Secure Systems Lab Python Style Guide:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ deps =
4747
--editable {toxinidir}
4848
lint_dirs = tuf examples tests verify_release
4949
commands =
50-
ruff --check --diff {[testenv:lint]lint_dirs}
50+
ruff check --diff {[testenv:lint]lint_dirs}
5151
pylint -j 0 --rcfile=pyproject.toml {[testenv:lint]lint_dirs}
5252

5353
mypy {[testenv:lint]lint_dirs}

0 commit comments

Comments
 (0)