add basic linting using ruff #184
test.yml
on: pull_request
run_linting
4s
Matrix: run_tests
Annotations
7 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 (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 (F821):
blazar/plugins/oshosts/host_plugin.py#L470
blazar/plugins/oshosts/host_plugin.py:470:61: F821 Undefined name `cap_name`
|
run_linting
The process '/opt/hostedtoolcache/ruff/0.9.1/x86_64/ruff' failed with exit code 1
|
run_tests (3.9)
Process completed with exit code 1.
|
run_tests (3.9)
Process completed with exit code 1.
|