Skip to content

Fix MegaLinter lint errors across three files#2067

Merged
FlorianPfaff merged 1 commit into
mainfrom
copilot/fix-flake8-errors
May 17, 2026
Merged

Fix MegaLinter lint errors across three files#2067
FlorianPfaff merged 1 commit into
mainfrom
copilot/fix-flake8-errors

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 17, 2026

Three MegaLinter checks (flake8, pylint, ruff) were failing due to an unused import, out-of-order module-level imports, and a protected-member access warning.

Changes

  • src/pyrecest/filters/unscented_kalman_filter.py — removed unused asarray from the backend import (F401/W0611)
  • tests/backend/test_jax_random_backend.py — added # noqa: E402 to the imports that intentionally follow pytest.importorskip("jax"), the standard pattern for conditional skip-guarded imports
  • tests/filters/test_unscented_kalman_filter.py — added inline # pylint: disable=protected-access on the line that directly accesses _filter_state to test internal UKF behaviour

Agent-Logs-Url: https://github.com/FlorianPfaff/PyRecEst/sessions/54334a6c-d5a8-4e7a-8c9b-9d1ef2ca830b

Co-authored-by: FlorianPfaff <6773539+FlorianPfaff@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ COPYPASTE jscpd yes no no 12.64s
✅ JSON prettier 2 0 0 0 0.39s
✅ JSON v8r 2 0 0 2.35s
✅ MARKDOWN markdownlint 28 0 0 0 1.08s
✅ MARKDOWN markdown-table-formatter 28 0 0 0 0.24s
✅ PYTHON bandit 554 0 0 7.34s
✅ PYTHON black 554 8 0 0 12.01s
✅ PYTHON flake8 554 0 0 4.37s
✅ PYTHON isort 554 9 0 0 0.84s
✅ PYTHON mypy 554 0 0 6.14s
✅ PYTHON pylint 554 0 0 81.7s
✅ PYTHON ruff 554 9 0 0 0.09s
✅ REPOSITORY checkov yes no no 25.35s
✅ REPOSITORY gitleaks yes no no 8.3s
✅ REPOSITORY git_diff yes no no 0.05s
✅ REPOSITORY osv-scanner yes no no 1.09s
✅ REPOSITORY secretlint yes no no 8.1s
✅ REPOSITORY syft yes no no 6.35s
✅ REPOSITORY trivy-sbom yes no no 2.89s
✅ REPOSITORY trufflehog yes no no 18.17s
✅ YAML prettier 5 0 0 0 0.45s
✅ YAML v8r 5 0 0 4.93s
✅ YAML yamllint 5 0 0 0.43s

Notices

📣 MegaLinter 9.5.0 is out! Discover the new features and security recommendations in the release announcement. (Skip this info by defining SECURITY_SUGGESTIONS: false)

See detailed reports in MegaLinter artifacts

Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)

  • Documentation: Custom Flavors
  • Command: npx mega-linter-runner@9.5.0 --custom-flavor-setup --custom-flavor-linters PYTHON_PYLINT,PYTHON_BLACK,PYTHON_FLAKE8,PYTHON_ISORT,PYTHON_BANDIT,PYTHON_MYPY,PYTHON_RUFF,COPYPASTE_JSCPD,JSON_V8R,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_CHECKOV,REPOSITORY_GIT_DIFF,REPOSITORY_GITLEAKS,REPOSITORY_OSV_SCANNER,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY_SBOM,REPOSITORY_TRUFFLEHOG,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

MegaLinter is graciously provided by OX Security
Show us your support by starring ⭐ the repository

@FlorianPfaff FlorianPfaff merged commit 04ba3be into main May 17, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants