Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@ select = ["E", "F", "I"]
[tool.ruff.lint.isort]
known-first-party = ["machinevisiontoolbox"]

[tool.bandit]
# bare `assert` is idiomatic pytest style, not a security concern -- Bandit's
# B101 ("assert used") is meant for src/, where assert can silently vanish
# under `python -O`. Excluding tests/ keeps that check meaningful without
# flagging every test assertion (Codacy runs Bandit via Prospector and
# honours this file).
exclude_dirs = ["tests"]

[tool.pyright]
include = ["src"]
ignore = ["docs", "tests", "examples"]
Expand Down