Skip to content

add basic linting using ruff #182

add basic linting using ruff

add basic linting using ruff #182

Triggered via pull request January 13, 2025 20:59
Status Failure
Total duration 1m 9s
Artifacts

test.yml

on: pull_request
run_linting
3s
run_linting
Matrix: run_tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Ruff (F811): blazar/db/sqlalchemy/api.py#L2177
blazar/db/sqlalchemy/api.py:2177:5: F811 Redefinition of unused `resource_property_get_or_create` from line 2174
Ruff (E711): blazar/db/sqlalchemy/models.py#L355
blazar/db/sqlalchemy/models.py:355:60: E711 Comparison to `None` should be `cond is None`
Ruff (F841): blazar/plugins/floatingips/floatingip_plugin.py#L513
blazar/plugins/floatingips/floatingip_plugin.py:513:17: F841 Local variable `subnet` is assigned to but never used
Ruff (F841): blazar/plugins/floatingips/floatingip_plugin.py#L515
blazar/plugins/floatingips/floatingip_plugin.py:515:62: F841 Local variable `e` is assigned to but never used
Ruff (F841): blazar/plugins/floatingips/floatingip_plugin.py#L520
blazar/plugins/floatingips/floatingip_plugin.py:520:65: F841 Local variable `e` is assigned to but never used
Ruff (F841): blazar/plugins/floatingips/floatingip_plugin.py#L526
blazar/plugins/floatingips/floatingip_plugin.py:526:53: F841 Local variable `e` is assigned to but never used
Ruff (F841): blazar/plugins/floatingips/floatingip_plugin.py#L561
blazar/plugins/floatingips/floatingip_plugin.py:561:13: F841 Local variable `results` is assigned to but never used
Ruff (F402): blazar/plugins/networks/network_plugin.py#L112
blazar/plugins/networks/network_plugin.py:112:13: F402 Import `plugin` from line 34 shadowed by loop variable
Ruff (F841): blazar/plugins/networks/network_plugin.py#L276
blazar/plugins/networks/network_plugin.py:276:13: F841 Local variable `ironic_client` is assigned to but never used
Ruff (F841): blazar/plugins/networks/network_plugin.py#L949
blazar/plugins/networks/network_plugin.py:949:13: F841 Local variable `results` is assigned to but never used