Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

239 replace deepsource with open source components #1309

Open
wants to merge 30 commits into
base: development
Choose a base branch
from

Conversation

ernstleierzopf
Copy link
Contributor

@ernstleierzopf ernstleierzopf commented Mar 25, 2024

Make sure these boxes are signed before submitting your Pull Request -- thank you.

Must haves

Fixes #1305

Submission specific

  • This PR introduces breaking changes
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Describe changes:

  • Please disable/remove Deepsource after accepting this PR.

.pre-commit-config.yaml Show resolved Hide resolved

- repo: https://gitlab.com/pycqa/flake8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also make sure that mccabe is installed. It can be executed as a flake8-plugin: https://github.com/PyCQA/mccabe

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I add this to the Jenkinsfile as an test which produces output, but it does not fail the pipeline. We did not fix the complexity thing and running the tests through would not be possible any more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also checked and added other plugins from flake8.

aecid-testsuite/runFlake8.sh Outdated Show resolved Hide resolved
docs/images/aminer-config-color.drawio Show resolved Hide resolved
@@ -677,7 +671,7 @@ def graceful_shutdown_handler(_signo, _stackFrame):
aminer_user_id = getpwnam(tmp_username).pw_uid
if tmp_group is not None:
aminer_group_id = getgrnam(tmp_group).gr_gid
except: # skipcq: FLK-E722
except KeyError:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this KeyError correct? Do we miss other Exceptions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only exception I would expect. The error message (which is unchanged) only explains this error as the user or group name could not be resolved. Other errors will fail the aminer anyways and should either be returned as they are or they should be catched explicitly.

I see nothing that could go wrong with this approach, as the program quits anyways.

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.

Replace Deepsource with open source components
2 participants