Skip to content

Add ruff

Add ruff #7

Triggered via pull request January 28, 2025 08:40
Status Failure
Total duration 2m 13s
Artifacts

lint.yml

on: pull_request
lint_format_ruff
5s
lint_format_ruff
lint_check_ruff
7s
lint_check_ruff
lint-mdanse-gui
9s
lint-mdanse-gui
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 3 warnings
Ruff (E402): Doc/offline/conf_api.py#L118
Doc/offline/conf_api.py:118:1: E402 Module level import not at top of file
Ruff (E402): Doc/offline/conf_help.py#L100
Doc/offline/conf_help.py:100:1: E402 Module level import not at top of file
Ruff (F632): Doc/offline/conf_help.py#L127
Doc/offline/conf_help.py:127:12: F632 Use `!=` to compare constant literals
Ruff (F632): MDANSE/Doc/conf_help.py#L147
MDANSE/Doc/conf_help.py:147:12: F632 Use `!=` to compare constant literals
Ruff (E713): MDANSE/Tests/UnitTests/Analysis/test_meansquare.py#L71
MDANSE/Tests/UnitTests/Analysis/test_meansquare.py:71:20: E713 Test for membership should be `not in`
Ruff (F841): MDANSE/Tests/UnitTests/molecules/test_chemistry.py#L46
MDANSE/Tests/UnitTests/molecules/test_chemistry.py:46:5: F841 Local variable `configuration` is assigned to but never used
Ruff (F841): MDANSE/Tests/UnitTests/test_HDF5Trajectory.py#L41
MDANSE/Tests/UnitTests/test_HDF5Trajectory.py:41:5: F841 Local variable `unit_cell` is assigned to but never used
Ruff (F403): MDANSE/Tests/UnitTests/test_analysis.py#L5
MDANSE/Tests/UnitTests/test_analysis.py:5:1: F403 `from MDANSE.MolecularDynamics.Analysis import *` used; unable to detect undefined names
Ruff (F405): MDANSE/Tests/UnitTests/test_analysis.py#L13
MDANSE/Tests/UnitTests/test_analysis.py:13:15: F405 `mean_square_deviation` may be undefined, or defined from star imports
Ruff (F405): MDANSE/Tests/UnitTests/test_analysis.py#L21
MDANSE/Tests/UnitTests/test_analysis.py:21:15: F405 `mean_square_deviation` may be undefined, or defined from star imports
Ruff (E402): Doc/offline/conf_api.py#L118
Doc/offline/conf_api.py:118:1: E402 Module level import not at top of file
Ruff (E402): Doc/offline/conf_help.py#L100
Doc/offline/conf_help.py:100:1: E402 Module level import not at top of file
Ruff (F632): Doc/offline/conf_help.py#L127
Doc/offline/conf_help.py:127:12: F632 Use `!=` to compare constant literals
Ruff (F632): MDANSE/Doc/conf_help.py#L147
MDANSE/Doc/conf_help.py:147:12: F632 Use `!=` to compare constant literals
Ruff (E713): MDANSE/Tests/UnitTests/Analysis/test_meansquare.py#L71
MDANSE/Tests/UnitTests/Analysis/test_meansquare.py:71:20: E713 Test for membership should be `not in`
Ruff (F841): MDANSE/Tests/UnitTests/molecules/test_chemistry.py#L46
MDANSE/Tests/UnitTests/molecules/test_chemistry.py:46:5: F841 Local variable `configuration` is assigned to but never used
Ruff (F841): MDANSE/Tests/UnitTests/test_HDF5Trajectory.py#L41
MDANSE/Tests/UnitTests/test_HDF5Trajectory.py:41:5: F841 Local variable `unit_cell` is assigned to but never used
Ruff (F403): MDANSE/Tests/UnitTests/test_analysis.py#L5
MDANSE/Tests/UnitTests/test_analysis.py:5:1: F403 `from MDANSE.MolecularDynamics.Analysis import *` used; unable to detect undefined names
Ruff (F405): MDANSE/Tests/UnitTests/test_analysis.py#L13
MDANSE/Tests/UnitTests/test_analysis.py:13:15: F405 `mean_square_deviation` may be undefined, or defined from star imports
Ruff (F405): MDANSE/Tests/UnitTests/test_analysis.py#L21
MDANSE/Tests/UnitTests/test_analysis.py:21:15: F405 `mean_square_deviation` may be undefined, or defined from star imports
lint_format_ruff
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint_check_ruff
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint-mdanse-gui
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636