Closes #22280: Set 91% test coverage threshold and exclude non-testable paths (#22450)

This commit is contained in:
Martin Hauser 2026-06-16 11:38:21 +02:00 committed by GitHub
parent 1264797fa6
commit 025074c390
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -34,9 +34,17 @@ sigterm = true
[tool.coverage.report]
skip_covered = true
fail_under = 91
omit = [
"*/migrations/*",
"*/tests/*",
# Non-application code (no testable logic / not part of the app)
"netbox/scripts/*", # SCRIPTS_ROOT: user/generated scripts
"*/netbox/configuration*.py", # settings/config files (template, testing, local)
"*/netbox/wsgi.py", # WSGI entrypoint
"*/generate_secret_key.py", # standalone CLI helper
"*/utilities/debug.py", # debug-toolbar hook, active only when DEBUG=True
"*/extras/management/commands/housekeeping.py", # deprecated; will not be tested
]
[tool.pyright]