Skip to content

Conversation

@FlorianPfaff
Copy link
Owner

No description provided.

@github-actions
Copy link

github-actions bot commented Nov 20, 2024

Test Results

    9 files      9 suites   1h 52m 42s ⏱️
  449 tests   449 ✅   0 💤 0 ❌
4 200 runs  3 519 ✅ 681 💤 0 ❌

Results for commit b94d873.

♻️ This comment has been updated with latest results.

@FlorianPfaff FlorianPfaff force-pushed the feature/hypercycl_state_space branch from 4385fd1 to b94d873 Compare November 14, 2025 17:33
@github-actions
Copy link

MegaLinter analysis: Error

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 5 0 0 0.13s
✅ COPYPASTE jscpd yes no no 6.96s
✅ JSON prettier 2 0 0 0 0.73s
✅ JSON v8r 2 0 0 2.64s
✅ MARKDOWN markdownlint 1 0 0 0 0.65s
✅ MARKDOWN markdown-table-formatter 1 0 0 0 0.24s
✅ PYTHON bandit 245 0 0 3.07s
✅ PYTHON black 245 2 0 0 5.93s
❌ PYTHON flake8 245 2 0 1.57s
✅ PYTHON isort 245 2 0 0 0.49s
✅ PYTHON mypy 245 0 0 3.89s
❌ PYTHON pylint 245 11 0 61.01s
❌ PYTHON ruff 245 2 2 0 0.07s
✅ REPOSITORY gitleaks yes no no 3.69s
✅ REPOSITORY git_diff yes no no 0.01s
✅ REPOSITORY secretlint yes no no 4.82s
✅ REPOSITORY syft yes no no 1.45s
✅ REPOSITORY trivy-sbom yes no no 1.08s
✅ REPOSITORY trufflehog yes no no 11.49s
✅ YAML prettier 9 1 0 0 0.73s
✅ YAML v8r 9 0 0 7.15s
✅ YAML yamllint 9 0 0 0.44s

Detailed Issues

❌ PYTHON / flake8 - 2 errors
pyrecest/distributions/cart_prod/hypercylindrical_state_space_subdivision_distribution.py:57:14: F821 undefined name 'CircularGridDistribution'
pyrecest/distributions/cart_prod/hypercylindrical_state_space_subdivision_distribution.py:64:13: E731 do not assign a lambda expression, use a def
❌ PYTHON / pylint - 11 errors
************* Module pyrecest.distributions.cart_prod.hypercylindrical_state_space_subdivision_distribution
pyrecest/distributions/cart_prod/hypercylindrical_state_space_subdivision_distribution.py:1:0: E0401: Unable to import 'pyrecest.distributions.cart_prod.state_space_subdivision_distribution' (import-error)
pyrecest/distributions/cart_prod/hypercylindrical_state_space_subdivision_distribution.py:1:0: E0611: No name 'state_space_subdivision_distribution' in module 'pyrecest.distributions.cart_prod' (no-name-in-module)
pyrecest/distributions/cart_prod/hypercylindrical_state_space_subdivision_distribution.py:10:4: W0231: __init__ method from base class 'AbstractHypercylindricalDistribution' is not called (super-init-not-called)
pyrecest/distributions/cart_prod/hypercylindrical_state_space_subdivision_distribution.py:14:8: R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return)
pyrecest/distributions/cart_prod/hypercylindrical_state_space_subdivision_distribution.py:31:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
pyrecest/distributions/cart_prod/hypercylindrical_state_space_subdivision_distribution.py:34:13: E0602: Undefined variable 'CircularGridDistribution' (undefined-variable)
pyrecest/distributions/cart_prod/hypercylindrical_state_space_subdivision_distribution.py:39:64: W0640: Cell variable i defined in loop (cell-var-from-loop)
pyrecest/distributions/cart_prod/hypercylindrical_state_space_subdivision_distribution.py:45:56: W0640: Cell variable fun_curr defined in loop (cell-var-from-loop)
pyrecest/distributions/cart_prod/hypercylindrical_state_space_subdivision_distribution.py:45:85: W0640: Cell variable i defined in loop (cell-var-from-loop)
pyrecest/distributions/cart_prod/hypercylindrical_state_space_subdivision_distribution.py:31:55: W0613: Unused argument 'dim_bound' (unused-argument)
pyrecest/distributions/cart_prod/hypercylindrical_state_space_subdivision_distribution.py:31:68: W0613: Unused argument 'grid_type' (unused-argument)

-----------------------------------
Your code has been rated at 9.97/10
❌ PYTHON / ruff - 2 errors
F821 Undefined name `CircularGridDistribution`
  --> pyrecest/distributions/cart_prod/hypercylindrical_state_space_subdivision_distribution.py:57:14
   |
55 |         assert dim_lin == 1, "Currently, bounded dimension must be 1."
56 |
57 |         gd = CircularGridDistribution.from_distribution(
   |              ^^^^^^^^^^^^^^^^^^^^^^^^
58 |             CircularUniformDistribution(), no_of_grid_points
59 |         )
   |

E731 Do not assign a `lambda` expression, use a `def`
  --> pyrecest/distributions/cart_prod/hypercylindrical_state_space_subdivision_distribution.py:64:13
   |
63 |           for i in range(no_of_grid_points):
64 | /             fun_curr = lambda y: np.reshape(
65 | |                 fun(np.vstack((grid[i] * np.ones_like(y), y))), np.shape(y)
66 | |             )
   | |_____________^
67 |
68 |               # Obtain grid value via integral
   |
help: Rewrite `fun_curr` as a `def`

Found 2 errors.
No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option).

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.1.0 --custom-flavor-setup --custom-flavor-linters PYTHON_PYLINT,PYTHON_BLACK,PYTHON_FLAKE8,PYTHON_ISORT,PYTHON_BANDIT,PYTHON_MYPY,PYTHON_RUFF,ACTION_ACTIONLINT,COPYPASTE_JSCPD,JSON_V8R,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_GIT_DIFF,REPOSITORY_GITLEAKS,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY_SBOM,REPOSITORY_TRUFFLEHOG,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

MegaLinter is graciously provided by OX Security

@FlorianPfaff FlorianPfaff force-pushed the main branch 3 times, most recently from cbbee9b to 22baafb Compare December 1, 2025 20:52
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