Skip to content

fix: resolve all remaining Ruff lint issues #20

fix: resolve all remaining Ruff lint issues

fix: resolve all remaining Ruff lint issues #20

Triggered via push May 13, 2026 14:37
Status Failure
Total duration 1m 17s
Artifacts

actions.yml

on: push
install-and-test
1m 11s
install-and-test
ruff-linting
5s
ruff-linting
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
ruff (I001): src/nomad_cau_plugin/schema_packages/schema_package.py#L15
src/nomad_cau_plugin/schema_packages/schema_package.py:15:1: I001 Import block is un-sorted or un-formatted help: Organize imports
ruff (PLC0415): src/nomad_cau_plugin/schema_packages/__init__.py#L9
src/nomad_cau_plugin/schema_packages/__init__.py:9:9: PLC0415 `import` should be at the top-level of a file
ruff (PLC0415): src/nomad_cau_plugin/parsers/xrd_from_cif.py#L128
src/nomad_cau_plugin/parsers/xrd_from_cif.py:128:9: PLC0415 `import` should be at the top-level of a file
ruff (PLC0415): src/nomad_cau_plugin/parsers/xrd_from_cif.py#L73
src/nomad_cau_plugin/parsers/xrd_from_cif.py:73:9: PLC0415 `import` should be at the top-level of a file
ruff (PLC0415): src/nomad_cau_plugin/parsers/xrd_from_cif.py#L37
src/nomad_cau_plugin/parsers/xrd_from_cif.py:37:5: PLC0415 `import` should be at the top-level of a file
ruff (F401): src/nomad_cau_plugin/parsers/xrd_from_cif.py#L7
src/nomad_cau_plugin/parsers/xrd_from_cif.py:7:17: F401 `numpy` imported but unused help: Remove unused import: `numpy`
ruff (PLC0415): src/nomad_cau_plugin/parsers/__init__.py#L34
src/nomad_cau_plugin/parsers/__init__.py:34:9: PLC0415 `import` should be at the top-level of a file
ruff (PLC0415): src/nomad_cau_plugin/normalizers/__init__.py#L9
src/nomad_cau_plugin/normalizers/__init__.py:9:9: PLC0415 `import` should be at the top-level of a file
ruff (PLC0415): src/nomad_cau_plugin/normalizers/CaP_experiments_normalizer.py#L296
src/nomad_cau_plugin/normalizers/CaP_experiments_normalizer.py:296:9: PLC0415 `import` should be at the top-level of a file
ruff (PLC0415): src/nomad_cau_plugin/normalizers/CaP_experiments_normalizer.py#L251
src/nomad_cau_plugin/normalizers/CaP_experiments_normalizer.py:251:9: PLC0415 `import` should be at the top-level of a file
ruff-linting
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, astral-sh/ruff-action@v3. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
install-and-test
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, astral-sh/setup-uv@v5. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/