Skip to content

Conversation

@FlorianPfaff
Copy link
Owner

No description provided.

@github-actions
Copy link

github-actions bot commented Sep 17, 2023

MegaLinter analysis: Error

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 5 0 0 0.11s
✅ COPYPASTE jscpd yes no no 6.61s
✅ JSON prettier 2 0 0 0 0.57s
✅ JSON v8r 2 0 0 2.41s
✅ MARKDOWN markdownlint 1 0 0 0 0.76s
✅ MARKDOWN markdown-table-formatter 1 0 0 0 0.26s
✅ PYTHON bandit 245 0 0 3.1s
✅ PYTHON black 245 2 0 0 5.76s
❌ PYTHON flake8 245 3 0 1.54s
✅ PYTHON isort 245 2 0 0 0.49s
✅ PYTHON mypy 245 0 0 3.73s
❌ PYTHON pylint 245 7 0 60.64s
❌ PYTHON ruff 245 2 3 0 0.08s
✅ REPOSITORY gitleaks yes no no 3.34s
✅ REPOSITORY git_diff yes no no 0.01s
✅ REPOSITORY secretlint yes no no 4.78s
✅ REPOSITORY syft yes no no 1.98s
✅ REPOSITORY trivy-sbom yes no no 1.1s
✅ REPOSITORY trufflehog yes no no 12.03s
✅ YAML prettier 9 1 0 0 0.67s
✅ YAML v8r 9 0 0 6.52s
✅ YAML yamllint 9 0 0 0.49s

Detailed Issues

❌ PYTHON / flake8 - 3 errors
pyrecest/filters/hypertoroidal_fourier_filter.py:46:9: F841 local variable 'warnStruct' is assigned to but never used
pyrecest/filters/hypertoroidal_fourier_filter.py:51:57: F821 undefined name 'CPredictedId'
pyrecest/filters/hypertoroidal_fourier_filter.py:53:57: F821 undefined name 'CPredictedId'
❌ PYTHON / pylint - 7 errors
************* Module pyrecest.filters.hypertoroidal_fourier_filter
pyrecest/filters/hypertoroidal_fourier_filter.py:5:0: E0401: Unable to import 'pyrecest.distributions.hypertorus.hypertoroidal_fourier_distribution' (import-error)
pyrecest/filters/hypertoroidal_fourier_filter.py:5:0: E0611: No name 'hypertoroidal_fourier_distribution' in module 'pyrecest.distributions.hypertorus' (no-name-in-module)
pyrecest/filters/hypertoroidal_fourier_filter.py:9:4: W0231: __init__ method from base class 'AbstractHypertoroidalFilter' is not called (super-init-not-called)
pyrecest/filters/hypertoroidal_fourier_filter.py:11:12: E0110: Abstract class 'HypertoroidalUniformDistribution' with abstract methods instantiated (abstract-class-instantiated)
pyrecest/filters/hypertoroidal_fourier_filter.py:42:56: E0602: Undefined variable 'CPredictedId' (undefined-variable)
pyrecest/filters/hypertoroidal_fourier_filter.py:44:56: E0602: Undefined variable 'CPredictedId' (undefined-variable)
pyrecest/filters/hypertoroidal_fourier_filter.py:37:8: W0612: Unused variable 'warnStruct' (unused-variable)

-----------------------------------
Your code has been rated at 9.97/10
❌ PYTHON / ruff - 3 errors
F841 Local variable `warnStruct` is assigned to but never used
  --> pyrecest/filters/hypertoroidal_fourier_filter.py:47:9
   |
45 |     def predictNonlinearViaTransitionDensity(self, fTrans, truncateJointSqrt=True):
46 |         dimC = np.shape(self.hfd.C)
47 |         warnStruct = warnings.catch_warnings()
   |         ^^^^^^^^^^
48 |         warnings.simplefilter("ignore")
49 |         # rest of the method body...
   |
help: Remove assignment to unused variable `warnStruct`

F821 Undefined name `CPredictedId`
  --> pyrecest/filters/hypertoroidal_fourier_filter.py:52:57
   |
50 |         if self.hfd.transformation == "identity" or not truncateJointSqrt:
51 |             warnings.resetwarnings()
52 |             self.hfd = HypertoroidalFourierDistribution(CPredictedId, "identity")
   |                                                         ^^^^^^^^^^^^
53 |         else:
54 |             self.hfd = HypertoroidalFourierDistribution(CPredictedId, "identity")
   |

F821 Undefined name `CPredictedId`
  --> pyrecest/filters/hypertoroidal_fourier_filter.py:54:57
   |
52 |             self.hfd = HypertoroidalFourierDistribution(CPredictedId, "identity")
53 |         else:
54 |             self.hfd = HypertoroidalFourierDistribution(CPredictedId, "identity")
   |                                                         ^^^^^^^^^^^^
55 |             warnings.resetwarnings()
   |

Found 3 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 [email protected] --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

@github-actions
Copy link

github-actions bot commented Sep 17, 2023

Test Results

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

Results for commit 99a0975.

♻️ This comment has been updated with latest results.

@FlorianPfaff FlorianPfaff force-pushed the main branch 3 times, most recently from 9b9c4f0 to a089dfc Compare September 29, 2023 12:45
@FlorianPfaff FlorianPfaff force-pushed the feature/HypertoroidalFourierFilter branch from 4247ef4 to 15d1be6 Compare January 19, 2024 14:33
@FlorianPfaff FlorianPfaff force-pushed the main branch 5 times, most recently from 022c55e to bb9ada8 Compare June 14, 2024 20:52
@FlorianPfaff FlorianPfaff force-pushed the feature/HypertoroidalFourierFilter branch from 15d1be6 to b314e0b Compare November 22, 2024 13:22
@FlorianPfaff FlorianPfaff force-pushed the feature/HypertoroidalFourierFilter branch from b314e0b to 99a0975 Compare November 14, 2025 17:28
@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