-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Add vscode python debugger for anta code #908
base: main
Are you sure you want to change the base?
Conversation
Quality Gate passedIssues Measures |
CodSpeed Performance ReportMerging #908 will not alter performanceComparing Summary
|
@@ -0,0 +1,21 @@ | |||
--- | |||
anta_inventory: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want these in the repo or should it be to each its own?
@@ -1,14 +0,0 @@ | |||
{ | |||
"ruff.enable": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm @mtache ok for you if this goes?
@@ -34,10 +35,11 @@ def test_cli_error_missing(capsys: pytest.CaptureFixture[Any]) -> None: | |||
"""Test ANTA errors out when anta[cli] was not installed.""" | |||
with patch.dict(sys.modules) as sys_modules, patch("builtins.__import__", import_mock): | |||
del sys_modules["anta.cli._main"] | |||
del sys_modules["anta.cli.console"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this one needed?
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Description
Implement VSCode Python debugger configuration to run ANTA CLI in debug mode.
This mechanism gives you following options:
And more
Default configuration is based on the following files:
.vscode/inventory.yml
: List of hosts to use in anta. Use ATD IP addressschema.
.vscode/nrfu.yml
: List of NRFU tests to run.Checklist:
pre-commit run
)tox -e testenv
)